Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ def rem_bg(vid):
|
|
73 |
fbox2=[]
|
74 |
cnt=0
|
75 |
frame_count1= int(frame_count)
|
76 |
-
for i in range(int(frame_count1)):
|
77 |
-
capture.set(cv2.CAP_PROP_POS_FRAMES, i
|
78 |
ret, frame_f = capture.read(i)
|
79 |
#frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
|
80 |
out = rm(frame_f)
|
|
|
73 |
fbox2=[]
|
74 |
cnt=0
|
75 |
frame_count1= int(frame_count)
|
76 |
+
for i in range(int(frame_count1)-1):
|
77 |
+
capture.set(cv2.CAP_PROP_POS_FRAMES, i)
|
78 |
ret, frame_f = capture.read(i)
|
79 |
#frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
|
80 |
out = rm(frame_f)
|