Omnibus commited on
Commit
355ba34
·
1 Parent(s): 432842f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)