From 78a566611d0b366ce24c7e36057dce6595ac78b8 Mon Sep 17 00:00:00 2001 From: "paul.kim" Date: Thu, 15 Oct 2015 11:03:46 +0900 Subject: [PATCH] Fix the issue in mouse click event --- samples/python2/camshift.py | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/python2/camshift.py b/samples/python2/camshift.py index bc96588539..086cc84ffe 100755 --- a/samples/python2/camshift.py +++ b/samples/python2/camshift.py @@ -44,6 +44,7 @@ class App(object): if event == cv2.EVENT_LBUTTONDOWN: self.drag_start = (x, y) self.tracking_state = 0 + return if self.drag_start: if flags & cv2.EVENT_FLAG_LBUTTON: h, w = self.frame.shape[:2]