Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def im_2_vid(images,fps):
|
|
| 61 |
print (width,height)
|
| 62 |
size = (width, height)
|
| 63 |
codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
| 64 |
-
video = cv2.VideoWriter(
|
| 65 |
for img in images:
|
| 66 |
video.write(img)
|
| 67 |
return (video)
|
|
|
|
| 61 |
print (width,height)
|
| 62 |
size = (width, height)
|
| 63 |
codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
| 64 |
+
video = cv2.VideoWriter("tmp_vid.mp4", codec, fps, size)
|
| 65 |
for img in images:
|
| 66 |
video.write(img)
|
| 67 |
return (video)
|