Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
146 |
depth_color[mask>0] = (0,0,0)
|
147 |
|
148 |
rgba_frame = cv2.cvtColor(raw_frame, cv2.COLOR_RGB2RGBA)
|
149 |
-
|
150 |
blur_frame = rgba_frame.copy()
|
151 |
i = 240
|
152 |
l = 0
|
|
|
146 |
depth_color[mask>0] = (0,0,0)
|
147 |
|
148 |
rgba_frame = cv2.cvtColor(raw_frame, cv2.COLOR_RGB2RGBA)
|
149 |
+
cv2.mixChannels([depth_color], [rgba_frame], [0,3])
|
150 |
blur_frame = rgba_frame.copy()
|
151 |
i = 240
|
152 |
l = 0
|