Commit 3a51cae2 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Fix rectangle selection in some of python samples

parent cb7cc816
......@@ -173,6 +173,7 @@ class RectSelector:
x, y = np.int16([x, y]) # BUG
if event == cv2.EVENT_LBUTTONDOWN:
self.drag_start = (x, y)
return
if self.drag_start:
if flags & cv2.EVENT_FLAG_LBUTTON:
xo, yo = self.drag_start
......
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