From 3a51cae2081fe5e0c1d562cbb48abfe62b83280c Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Tue, 2 Feb 2016 14:16:49 +0300 Subject: [PATCH] Fix rectangle selection in some of python samples --- samples/python/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/python/common.py b/samples/python/common.py index 785fb6c8fb..09159bbe8c 100755 --- a/samples/python/common.py +++ b/samples/python/common.py @@ -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