Does anyone know any function for saving a video in openCV.
Preferably a function to be able to work with it.
I've tried to implement but I couldn't
Does anyone know any function for saving a video in openCV.
Preferably a function to be able to work with it.
I've tried to implement but I couldn't
OpenCV has VideoWriter API that you can use. See the below example code:
##define the video writer
out = cv2.VideoWriter(<filename_with_extention>,<compression_format>, <frames_per_second>, (frame_width,frame_height))
## write a frame in the loop
out.write(<your_frame>)
## Release the video writer outside of the scope of the loop
out.release()