mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Fix the issue in mouse click event
This commit is contained in:
parent
454e5e5fa4
commit
78a566611d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user