Omnibus commited on
Commit
6fa5ca9
·
1 Parent(s): b639502

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -120,15 +120,15 @@ def rem_bg(vid,frame_count):
120
  print (i)
121
  cv2.imwrite(f'{uid}-rembg/{i}.png',out)
122
  fbox2.append(f'{uid}-rembg/{i}.png')
123
-
124
- #capture.set(cv2.CAP_PROP_POS_FRAMES, int(frame_count)-1)
125
- #ret, frame_f = capture.read()
126
- #frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
127
- #cv2.imwrite(f'{uid}/{int(frame_count)-1}.png',frame_ff)
128
- #fbox.append(f'{uid}/{int(frame_count)-1}.png')
129
- #capture.release()
130
- #out = cv2.VideoWriter('video.avi',cv2.VideoWriter_fourcc(*'DIVX'), 15, size)
131
- return fbox2
132
 
133
 
134
 
 
120
  print (i)
121
  cv2.imwrite(f'{uid}-rembg/{i}.png',out)
122
  fbox2.append(f'{uid}-rembg/{i}.png')
123
+ yield fbox2
124
+ #capture.set(cv2.CAP_PROP_POS_FRAMES, int(frame_count)-1)
125
+ #ret, frame_f = capture.read()
126
+ #frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
127
+ #cv2.imwrite(f'{uid}/{int(frame_count)-1}.png',frame_ff)
128
+ #fbox.append(f'{uid}/{int(frame_count)-1}.png')
129
+ #capture.release()
130
+ #out = cv2.VideoWriter('video.avi',cv2.VideoWriter_fourcc(*'DIVX'), 15, size)
131
+ #return fbox2
132
 
133
 
134