Fix crash on exit in opencv_annotation

destroyWindow was called twice during completion of the
annotation procedure, resulting in a crash, and failure to write
an output file
pull/11075/head
Ilya A. Volynets-Evenbakh 7 years ago
parent d68466bb6a
commit 9749afb116
  1. 1
      apps/annotation/opencv_annotation.cpp

@ -140,7 +140,6 @@ vector<Rect> get_annotations(Mat input_image)
switch( key_pressed )
{
case 27:
destroyWindow(window_name);
stop = true;
break;
case 99:

Loading…
Cancel
Save