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
11f53885
Commit
11f53885
authored
Jun 10, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #253 from lluisgomez/master
Fix for Bug 4074. This seems to be just a typo-error.
parents
844c30e8
d7410500
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
erfilter.cpp
modules/text/src/erfilter.cpp
+5
-1
ocr_tesseract.cpp
modules/text/src/ocr_tesseract.cpp
+1
-1
No files found.
modules/text/src/erfilter.cpp
View file @
11f53885
...
...
@@ -287,7 +287,11 @@ void ERFilterNM::er_tree_extract( InputArray image )
quads
[
1
][
3
]
=
(
1
<<
3
)
|
(
1
<<
2
)
|
(
1
<<
1
);
quads
[
2
][
0
]
=
(
1
<<
2
)
|
(
1
<<
1
);
quads
[
2
][
1
]
=
(
1
<<
3
)
|
(
1
);
quads
[
2
][
3
]
=
255
;
// quads[2][2] and quads[2][3] are never used so no need to initialize them.
// The four lowest bits in each quads[i][j] correspond to the 2x2 binary patterns
// Q_1, Q_2, Q_3 in the Neumann and Matas CVPR 2012 paper
// (see in page 4 at the end of first column).
// Q_1 and Q_2 have four patterns, while Q_3 has only two.
// masks to know if a pixel is accessible and if it has been already added to some region
...
...
modules/text/src/ocr_tesseract.cpp
View file @
11f53885
...
...
@@ -127,7 +127,7 @@ public:
int
component_level
=
0
)
{
CV_Assert
(
(
image
.
type
()
==
CV_8UC1
)
||
(
image
.
type
()
==
CV_8UC
1
)
);
CV_Assert
(
(
image
.
type
()
==
CV_8UC1
)
||
(
image
.
type
()
==
CV_8UC
3
)
);
#ifdef HAVE_TESSERACT
...
...
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