Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
b7a76004
Commit
b7a76004
authored
Jul 11, 2016
by
Anguelos Nicolaou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attenpt to supress visual studio and IOS warnings v2
parent
2b788904
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
modules/text/CMakeLists.txt
+2
-2
ocr_holistic.cpp
modules/text/src/ocr_holistic.cpp
+1
-1
No files found.
modules/text/CMakeLists.txt
View file @
b7a76004
...
...
@@ -61,7 +61,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
if
(
${
Caffe_FOUND
}
)
include_directories
(
${
Caffe_INCLUDE_DIR
}
)
#
Anguelos:
taken from caffe's cmake
#taken from caffe's cmake
find_package
(
HDF5 COMPONENTS HL REQUIRED
)
include_directories
(
SYSTEM
${
HDF5_INCLUDE_DIRS
}
${
HDF5_HL_INCLUDE_DIR
}
)
list
(
APPEND Caffe_LINKER_LIBS
${
HDF5_LIBRARIES
}
)
...
...
@@ -74,7 +74,7 @@ endif()
if
(
${
Caffe_FOUND
}
)
#
Anguelos:
taken from caffe's cmake
#taken from caffe's cmake
target_link_libraries
(
opencv_text
${
Caffe_LIBS
}
${
Glog_LIBS
}
${
Protobuf_LIBS
}
${
HDF5_LIBRARIES
}
${
Boost_LIBRARIES
}
)
endif
()
endif
()
...
...
modules/text/src/ocr_holistic.cpp
View file @
b7a76004
...
...
@@ -133,7 +133,7 @@ public:
void
classifyBatch
(
InputArrayOfArrays
inputImageList
,
OutputArray
classProbabilities
){
std
::
vector
<
Mat
>
allImageVector
;
inputImageList
.
getMatVector
(
allImageVector
);
classProbabilities
.
create
(
Size
(
unsigned
int
(
this
->
outputSize_
),
allImageVector
.
size
()),
CV_32F
);
classProbabilities
.
create
(
Size
(
(
size_t
)
(
this
->
outputSize_
),
allImageVector
.
size
()),
CV_32F
);
Mat
outputMat
=
classProbabilities
.
getMat
();
for
(
size_t
imgNum
=
0
;
imgNum
<
allImageVector
.
size
();
imgNum
+=
this
->
minibatchSz_
){
int
rangeEnd
=
imgNum
+
std
::
min
<
int
>
(
allImageVector
.
size
()
-
imgNum
,
this
->
minibatchSz_
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment