Spaces:
Running
Running
Update app.py
Browse files
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
|
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)
|