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
31d11378
Commit
31d11378
authored
Nov 25, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text: minor refactoring in C++ sample
parent
1dc84e81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
textdetection.cpp
modules/text/samples/textdetection.cpp
+2
-3
No files found.
modules/text/samples/textdetection.cpp
View file @
31d11378
...
...
@@ -32,7 +32,6 @@ int main(int argc, const char * argv[])
if
(
argc
<
2
)
show_help_and_exit
(
argv
[
0
]);
namedWindow
(
"grouping"
,
WINDOW_NORMAL
);
Mat
src
=
imread
(
argv
[
1
]);
// Extract channels to be processed individually
...
...
@@ -70,8 +69,8 @@ int main(int argc, const char * argv[])
imshow
(
"grouping"
,
src
);
cout
<<
"Done!"
<<
endl
<<
endl
;
cout
<<
"Press 'e' to show the extracted Extremal Regions, any other key to exit."
<<
endl
<<
endl
;
if
(
waitKey
(
-
1
)
==
101
)
cout
<<
"Press '
spac
e' to show the extracted Extremal Regions, any other key to exit."
<<
endl
<<
endl
;
if
((
waitKey
()
&
0xff
)
==
' '
)
er_show
(
channels
,
regions
);
// memory clean-up
...
...
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