Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,8 +146,8 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
146 |
depth_color[mask>0] = (0,0,0)
|
147 |
|
148 |
blur_frame = raw_frame.copy()
|
149 |
-
|
150 |
-
for
|
151 |
blur_lo = np.array([i,i,i])
|
152 |
blur_hi = np.array([i+16,i+16,i+16])
|
153 |
blur_mask = cv2.inRange(depth_color, blur_lo, blur_hi)
|
@@ -156,8 +156,8 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
156 |
blur = cv2.GaussianBlur(raw_frame,(j,j),0)
|
157 |
|
158 |
blur_frame[blur_mask>0] = blur[blur_mask>0]
|
159 |
-
i = i
|
160 |
-
j = j
|
161 |
|
162 |
# split_region = np.ones((frame_height, margin_width, 3), dtype=np.uint8) * 255
|
163 |
# combined_frame = cv2.hconcat([raw_frame, split_region, depth_color])
|
|
|
146 |
depth_color[mask>0] = (0,0,0)
|
147 |
|
148 |
blur_frame = raw_frame.copy()
|
149 |
+
i = 240
|
150 |
+
for j in range(1, 33):
|
151 |
blur_lo = np.array([i,i,i])
|
152 |
blur_hi = np.array([i+16,i+16,i+16])
|
153 |
blur_mask = cv2.inRange(depth_color, blur_lo, blur_hi)
|
|
|
156 |
blur = cv2.GaussianBlur(raw_frame,(j,j),0)
|
157 |
|
158 |
blur_frame[blur_mask>0] = blur[blur_mask>0]
|
159 |
+
i = i - 16
|
160 |
+
j = j + 2
|
161 |
|
162 |
# split_region = np.ones((frame_height, margin_width, 3), dtype=np.uint8) * 255
|
163 |
# combined_frame = cv2.hconcat([raw_frame, split_region, depth_color])
|