Omnibus commited on
Commit
32c6768
·
1 Parent(s): 355ba34

Update app.py

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