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
This commit is contained in:
parent
d68466bb6a
commit
9749afb116
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user