freealise commited on
Commit
f83abf6
1 Parent(s): 0799053

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -204,7 +204,7 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', remove_bg
204
  mask_shadow = cv2.bitwise_not(mask_no_shadow)
205
 
206
  backSub = cv2.createBackgroundSubtractorKNN()
207
- fgMask = backSub.apply(raw_frame.astype(np.float16), 0)
208
 
209
  m = cv2.inRange(raw_frame, np.array([255,255,255]), np.array([255,255,255]))
210
  raw_frame[m>0] = (239,239,239)
 
204
  mask_shadow = cv2.bitwise_not(mask_no_shadow)
205
 
206
  backSub = cv2.createBackgroundSubtractorKNN()
207
+ fgMask = backSub.apply(raw_frame)
208
 
209
  m = cv2.inRange(raw_frame, np.array([255,255,255]), np.array([255,255,255]))
210
  raw_frame[m>0] = (239,239,239)