ONNX-CREStereo-Depth-Estimation icon indicating copy to clipboard operation
ONNX-CREStereo-Depth-Estimation copied to clipboard

Save an image sequence?

Open noobtoob4lyfe opened this issue 1 year ago • 1 comments

Thanks for sharing this fantastic work.

How would I go about saving the resulting video or image sequence from running "video_depth_estimation.py". I can see each frame being displayed in imshow as it renders but I'd really like to save all the frames. Would you have any idea what code I would need to add to "video_depth_estimation.py"?
Thanks!

noobtoob4lyfe avatar Aug 07 '22 06:08 noobtoob4lyfe

you can use cv2.VideoWriter (https://learnopencv.com/read-write-and-display-a-video-using-opencv-cpp-python/).

Make sure the size of the video matches the size of the frames you want to save.

ibaiGorordo avatar Aug 13 '22 07:08 ibaiGorordo