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
b913cac1
Commit
b913cac1
authored
Jul 22, 2017
by
sghoshcvc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Doxygen Warning and error
parent
ca2a2abe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
FindTesseract.cmake
modules/text/FindTesseract.cmake
+1
-1
ocr.hpp
modules/text/include/opencv2/text/ocr.hpp
+0
-4
deeptextdetection.py
modules/text/samples/deeptextdetection.py
+2
-2
textbox_demo.cpp
modules/text/samples/textbox_demo.cpp
+1
-3
No files found.
modules/text/FindTesseract.cmake
View file @
b913cac1
...
...
@@ -19,4 +19,4 @@ find_library(Lept_LIBRARY NAMES lept
set
(
Tesseract_LIBS
${
Tesseract_LIBRARY
}
${
Lept_LIBRARY
}
)
if
(
Tesseract_LIBS AND Tesseract_INCLUDE_DIR
)
set
(
Tesseract_FOUND 1
)
endif
()
endif
()
modules/text/include/opencv2/text/ocr.hpp
View file @
b913cac1
...
...
@@ -613,10 +613,6 @@ public:
@param emission_probabilities_table Table with observation emission probabilities. cols ==
rows == vocabulary.size().
@param windowWidth The width of the windows to which the sliding window will be iterated. The height will
be the height of the image. The windows might be resized to fit the classifiers input by the classifiers
preprocessor.
@param mode HMM Decoding algorithm (only Viterbi for the moment)
@param beam_size Size of the beam in Beam Search algorithm
...
...
modules/text/samples/deeptextdetection.py
View file @
b913cac1
...
...
@@ -25,12 +25,12 @@ if (len(sys.argv) < 2):
# print"The text module was compiled without Caffe which is the only available DeepCNN backend.\nAborting!\n"
#
# quit()
# check model and architecture file existance
# check model and architecture file existance
if
not
os
.
path
.
isfile
(
'textbox.caffemodel'
)
or
not
os
.
path
.
isfile
(
'textbox_deploy.prototxt'
):
print
" Model files not found in current directory. Aborting"
print
" Model files should be downloaded from https://github.com/sghoshcvc/TextBox-Models"
quit
()
cv2
.
text
.
cnn_config
.
caffe_backend
.
setCaffeGpuMode
(
True
);
pathname
=
os
.
path
.
dirname
(
sys
.
argv
[
0
])
...
...
modules/text/samples/textbox_demo.cpp
View file @
b913cac1
...
...
@@ -17,6 +17,7 @@
#include <iomanip>
#include <fstream>
void
textbox_draw
(
cv
::
Mat
&
src
,
std
::
vector
<
cv
::
Rect
>
&
groups
,
std
::
vector
<
float
>
&
probs
,
std
::
vector
<
cv
::
String
>
wordList
,
float
thres
=
0.6
);
inline
std
::
string
getHelpStr
(
std
::
string
progFname
){
std
::
stringstream
out
;
out
<<
" Demo of text detection CNN for text detection."
<<
std
::
endl
;
...
...
@@ -140,7 +141,4 @@ int main(int argc, const char * argv[]){
std
::
cout
<<
"Press any key to exit."
<<
std
::
endl
<<
std
::
endl
;
if
((
cv
::
waitKey
()
&
0xff
)
==
' '
)
return
0
;
}
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