mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Merge pull request #5552 from hyunkim9123:camshift-2.4
This commit is contained in:
commit
4dc2313527
@ -44,6 +44,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]
|
||||||
|
Loading…
Reference in New Issue
Block a user