Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan-Datta committed Nov 6, 2024
1 parent 78f9add commit fcfeed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/video/mp4-recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def record_zed_to_mp4(output_file="output.mp4", fps=30, duration=10):
# Write the frame to the video file
video_writer.write(frame)

# Optional: Display the frame (press 'q' to exit early)
cv2.imshow("ZED Video", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# # Optional: Display the frame (press 'q' to exit early)
# cv2.imshow("ZED Video", frame)
# if cv2.waitKey(1) & 0xFF == ord('q'):
# break
else:
print("Frame grab failed")
break
Expand Down

0 comments on commit fcfeed2

Please sign in to comment.