Skip to content

Commit 51fa622

Browse files
committed
Fix bug: Invalid Syntax at line 14(draw_motion_comp method)
1 parent f5e493b commit 51fa622

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/optflow/samples/motempl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
def nothing(dummy):
1212
pass
1313

14-
def draw_motion_comp(vis, (x, y, w, h), angle, color):
14+
def draw_motion_comp(vis, rect, angle, color):
15+
x, y, w, h = rect
1516
cv.rectangle(vis, (x, y), (x+w, y+h), (0, 255, 0))
1617
r = min(w/2, h/2)
1718
cx, cy = x+w/2, y+h/2

0 commit comments

Comments
 (0)