arccoder / opencvdragrect

Drag a rectangle on an image window using opencv
https://arccoder.github.io/opencvdragrect/
40 stars 21 forks source link

Fix recursion and segmentation fault issues #11

Open duckythescientist opened 2 years ago

duckythescientist commented 2 years ago

The callbacks no longer call any drawing/window functions. Since they don't call waitKey, there's no recursion issue. Since they don't destroy the window after a double click, there's no segmentation fault of calling imshow on a destroyed window.

This should fix issues #8 and #10