We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc84e8 commit 31d1137Copy full SHA for 31d1137
modules/text/samples/textdetection.cpp
@@ -32,7 +32,6 @@ int main(int argc, const char * argv[])
32
33
if (argc < 2) show_help_and_exit(argv[0]);
34
35
- namedWindow("grouping",WINDOW_NORMAL);
36
Mat src = imread(argv[1]);
37
38
// Extract channels to be processed individually
@@ -70,8 +69,8 @@ int main(int argc, const char * argv[])
70
69
imshow("grouping",src);
71
72
cout << "Done!" << endl << endl;
73
- cout << "Press 'e' to show the extracted Extremal Regions, any other key to exit." << endl << endl;
74
- if( waitKey (-1) == 101)
+ cout << "Press 'space' to show the extracted Extremal Regions, any other key to exit." << endl << endl;
+ if ((waitKey()&0xff) == ' ')
75
er_show(channels,regions);
76
77
// memory clean-up
0 commit comments