text: minor refactoring in C++ sample

pull/876/head
Alexander Alekhin 9 years ago
parent 1dc84e81e5
commit 31d1137890
  1. 5
      modules/text/samples/textdetection.cpp

@ -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 'space' to show the extracted Extremal Regions, any other key to exit." << endl << endl;
if ((waitKey()&0xff) == ' ')
er_show(channels,regions);
// memory clean-up

Loading…
Cancel
Save