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
c6ea683b
Commit
c6ea683b
authored
Jan 15, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #155 from nisargthakkar/Bug4074
Fix for Bug 4074. Both conditions of if are same
parents
0d39db68
c21fd589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ocr_tesseract.cpp
modules/text/src/ocr_tesseract.cpp
+1
-1
No files found.
modules/text/src/ocr_tesseract.cpp
View file @
c6ea683b
...
...
@@ -59,7 +59,7 @@ void OCRTesseract::run(Mat& image, string& output_text, vector<Rect>* component_
vector
<
string
>*
component_texts
,
vector
<
float
>*
component_confidences
,
int
component_level
)
{
CV_Assert
(
(
image
.
type
()
==
CV_8UC1
)
||
(
image
.
type
()
==
CV_8UC
1
)
);
CV_Assert
(
(
image
.
type
()
==
CV_8UC1
)
||
(
image
.
type
()
==
CV_8UC
3
)
);
CV_Assert
(
(
component_level
==
OCR_LEVEL_TEXTLINE
)
||
(
component_level
==
OCR_LEVEL_WORD
)
);
output_text
.
clear
();
if
(
component_rects
!=
NULL
)
...
...
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