1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

multiple cameras and frame saving in video.py

This commit is contained in:
Alexander Mordvintsev
2011-06-10 07:54:21 +00:00
parent fac611337f
commit 787fe6a93f
2 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ if len(sys.argv) > 1:
img = cv2.imread(fn)
else:
sz = 4096
print 'generating %dx%d procudural image ...' % (sz, sz)
print 'generating %dx%d procedural image ...' % (sz, sz)
img = np.zeros((sz, sz), np.uint8)
track = np.cumsum(np.random.rand(500000, 2)-0.5, axis=0)
track = np.int32(track*10 + (sz/2, sz/2))