逐个图片保存成视频
fourcc = cv.VideoWriter_fourcc(*'XVID') writer = cv.VideoWriter("out.avi", fourcc, 20.0, (640, 480), True) writer.write(im)
fourcc = cv.VideoWriter_fourcc(*'XVID') writer = cv.VideoWriter("out.avi", fourcc, 20.0, (640, 480), True) writer.write(im)