freealise commited on
Commit
081057e
1 Parent(s): 89a1848

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- masks = np.bitwise_and(m, mask)
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)