fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
时间: 2024-01-24 07:05:03 浏览: 125
opencv视频基本图像处理.rar_opencv_opencv video处理_processing_图像处理
This code sets up a VideoWriter object to write video frames to a file named "output.avi" with the XVID codec, a frame rate of 20 frames per second, and a resolution of 640x480 pixels. The asterisk before 'XVID' is used to unpack the string into individual characters, as expected by the VideoWriter_fourcc function.
阅读全文