Fix the issue in mouse click event

This commit is contained in:
paul.kim
2015-10-15 11:03:46 +09:00
parent 706b8a6266
commit d5d16bb3b1

View File

@@ -54,6 +54,7 @@ class App(object):
if event == cv2.EVENT_LBUTTONDOWN: if event == cv2.EVENT_LBUTTONDOWN:
self.drag_start = (x, y) self.drag_start = (x, y)
self.tracking_state = 0 self.tracking_state = 0
return
if self.drag_start: if self.drag_start:
if flags & cv2.EVENT_FLAG_LBUTTON: if flags & cv2.EVENT_FLAG_LBUTTON:
h, w = self.frame.shape[:2] h, w = self.frame.shape[:2]