Samples Python:

* Unused variables
* Bad identation
This commit is contained in:
tribta
2017-08-24 17:45:14 +01:00
parent 9bb17caa24
commit 7555ab194f
20 changed files with 43 additions and 45 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ if __name__ == '__main__':
d = 12
points = np.dstack( np.mgrid[d/2:w:d, d/2:h:d] ).reshape(-1, 2)
for x, y in np.int32(points):
vx, vy = np.int32(flow[y, x]*d)
cv2.line(vis, (x-vx, y-vy), (x+vx, y+vy), (0, 0, 0), 1, cv2.LINE_AA)
vx, vy = np.int32(flow[y, x]*d)
cv2.line(vis, (x-vx, y-vy), (x+vx, y+vy), (0, 0, 0), 1, cv2.LINE_AA)
cv2.imshow('input', img)
cv2.imshow('flow', vis)
cv2.waitKey()