Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -147,9 +147,9 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
147 |
# frame_path = os.path.join(temp_frame_dir, f"frame_{count:05d}.png")
|
148 |
# cv2.imwrite(frame_path, combined_frame)
|
149 |
|
150 |
-
cv2.imwrite(f"
|
151 |
orig_frames.append(f"vframe{count}.jpg")
|
152 |
-
cv2.imwrite(f"
|
153 |
depth_frames.append(f"dframe{count}.jpg")
|
154 |
count += 1
|
155 |
|
|
|
147 |
# frame_path = os.path.join(temp_frame_dir, f"frame_{count:05d}.png")
|
148 |
# cv2.imwrite(frame_path, combined_frame)
|
149 |
|
150 |
+
cv2.imwrite(f"f{count}.jpg", raw_frame)
|
151 |
orig_frames.append(f"vframe{count}.jpg")
|
152 |
+
cv2.imwrite(f"f{count}_dmap.jpg", depth_color)
|
153 |
depth_frames.append(f"dframe{count}.jpg")
|
154 |
count += 1
|
155 |
|