Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
150 |
blur_hi = np.array([i+16,i+16,i+16])
|
151 |
blur_mask = cv2.inRange(depth_color, blur_lo, blur_hi)
|
152 |
|
153 |
-
blur = cv2.GaussianBlur(raw_frame,(int((256-i)/16),int((256-i)/16)),0)
|
154 |
blur_frame = raw_frame.copy()
|
155 |
blur_frame[blur_mask>0] = blur[blur_mask>0]
|
156 |
i = i + 16
|
|
|
150 |
blur_hi = np.array([i+16,i+16,i+16])
|
151 |
blur_mask = cv2.inRange(depth_color, blur_lo, blur_hi)
|
152 |
|
153 |
+
blur = cv2.GaussianBlur(raw_frame,(int((256-i)/16*2-1),int((256-i)/16*2-1)),0)
|
154 |
blur_frame = raw_frame.copy()
|
155 |
blur_frame[blur_mask>0] = blur[blur_mask>0]
|
156 |
i = i + 16
|