Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -295,8 +295,7 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', remove_bg
|
|
295 |
m = cv2.inRange(hsv_, np.array([0,0,0]), np.array([180,maxs,maxl]))
|
296 |
mask = cv2.inRange(blur_s, 0, maxv)
|
297 |
|
298 |
-
|
299 |
-
masks_shadow = np.bitwise_and(mask_bg_shadow, masks)
|
300 |
#mask_no_shadow = cv2.bitwise_not(mask_shadow)
|
301 |
|
302 |
#stereo = cv2.StereoBM.create(numDisparities=16, blockSize=15)
|
|
|
295 |
m = cv2.inRange(hsv_, np.array([0,0,0]), np.array([180,maxs,maxl]))
|
296 |
mask = cv2.inRange(blur_s, 0, maxv)
|
297 |
|
298 |
+
masks_shadow = np.bitwise_and(mask_bg_shadow, np.bitwise_and(m, mask))
|
|
|
299 |
#mask_no_shadow = cv2.bitwise_not(mask_shadow)
|
300 |
|
301 |
#stereo = cv2.StereoBM.create(numDisparities=16, blockSize=15)
|