oskarastrom commited on
Commit
c279e69
·
1 Parent(s): 74d019f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,9 +49,9 @@ state = {
49
  result = {}
50
 
51
 
52
- vid_frames = (np.random.rand(100, 100, 3)*255).astype('uint8')
53
  out = cv2.VideoWriter("static/test_video.mp4", cv2.VideoWriter_fourcc(*'mp4v'), 10, [ 100, 100 ] )
54
- for j, frame in enumerate(vid_frames):
 
55
  out.write(frame)
56
  out.release()
57
 
 
49
  result = {}
50
 
51
 
 
52
  out = cv2.VideoWriter("static/test_video.mp4", cv2.VideoWriter_fourcc(*'mp4v'), 10, [ 100, 100 ] )
53
+ for i in range(20):
54
+ frame = (np.random.rand(100, 100, 3)*255).astype('uint8')
55
  out.write(frame)
56
  out.release()
57