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
parent d68466bb
...@@ -140,7 +140,6 @@ vector<Rect> get_annotations(Mat input_image) ...@@ -140,7 +140,6 @@ vector<Rect> get_annotations(Mat input_image)
switch( key_pressed ) switch( key_pressed )
{ {
case 27: case 27:
destroyWindow(window_name);
stop = true; stop = true;
break; break;
case 99: case 99:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment