Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def rem_bg(vid):
|
|
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)
|
|
|
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+1)
|
78 |
ret, frame_f = capture.read(i)
|
79 |
#frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
|
80 |
out = rm(frame_f)
|