Commit 3119f0a6 authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #5519 from hyunkim9123:camshift_py

parents 1648e929 d5d16bb3
...@@ -54,6 +54,7 @@ class App(object): ...@@ -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]
......
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