Merge pull request #5519 from hyunkim9123:camshift_py

This commit is contained in:
Maksim Shabunin
2015-10-20 14:43:33 +00:00

View File

@@ -54,6 +54,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]