1 | initial version |
you're trying to write a grayscale image, while your current setup expects a color one. so try:
out = cv2.VideoWriter('output1.mp4', fourcc , 20.0, (640,480), False)
more things to check:
out.read()
and cap.isOpened()
2 | No.2 Revision |
you're trying to write a grayscale image, while your current setup expects a color one. so try:
out = cv2.VideoWriter('output1.mp4', fourcc , 20.0, (640,480), False)
more things to check:
out.read()
and cap.isOpened()out.isOpened()