Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,8 +80,10 @@ def rem_bg(vid):
|
|
| 80 |
yield fbox2,frame_num
|
| 81 |
|
| 82 |
|
| 83 |
-
def im_2_vid():
|
| 84 |
-
width, height = Image.open(images[0]).size
|
|
|
|
|
|
|
| 85 |
size = (width, height)
|
| 86 |
codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
| 87 |
if (len(sys.argv) < 2 and n > 0):
|
|
|
|
| 80 |
yield fbox2,frame_num
|
| 81 |
|
| 82 |
|
| 83 |
+
def im_2_vid(images,fps):
|
| 84 |
+
#width, height = Image.open(images[0]).size
|
| 85 |
+
width, height = cv2.imread(images[0]).shape()
|
| 86 |
+
print (width,height)
|
| 87 |
size = (width, height)
|
| 88 |
codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
| 89 |
if (len(sys.argv) < 2 and n > 0):
|