Samples Python:
* Unused variables * Bad identation
This commit is contained in:
@@ -29,7 +29,7 @@ def draw_flow(img, flow, step=16):
|
||||
lines = np.int32(lines + 0.5)
|
||||
vis = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
|
||||
cv2.polylines(vis, lines, 0, (0, 255, 0))
|
||||
for (x1, y1), (x2, y2) in lines:
|
||||
for (x1, y1), (_x2, _y2) in lines:
|
||||
cv2.circle(vis, (x1, y1), 1, (0, 255, 0), -1)
|
||||
return vis
|
||||
|
||||
|
||||
Reference in New Issue
Block a user