Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,9 +146,8 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
146 |
# out.write(combined_frame)
|
147 |
# frame_path = os.path.join(temp_frame_dir, f"frame_{count:05d}.png")
|
148 |
# cv2.imwrite(frame_path, combined_frame)
|
149 |
-
orig_frame = cv2.cvtColor(raw_frame, cv2.COLOR_BGR2RGB)
|
150 |
|
151 |
-
cv2.imwrite(f"vframe{count}.jpg",
|
152 |
orig_frames.append(f"vframe{count}.jpg")
|
153 |
cv2.imwrite(f"dframe{count}.jpg", depth_color)
|
154 |
depth_frames.append(f"dframe{count}.jpg")
|
|
|
146 |
# out.write(combined_frame)
|
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"vframe{count}.jpg", raw_frame)
|
151 |
orig_frames.append(f"vframe{count}.jpg")
|
152 |
cv2.imwrite(f"dframe{count}.jpg", depth_color)
|
153 |
depth_frames.append(f"dframe{count}.jpg")
|