I am trying to create a video using OpenCV 2.4.0 in python 2.7.2. But the avi file size is 0.
OpenCV 2.4.0
python 2.7.2
avi
My code:
from cv
height, width, layers = img.shape out = cv2.VideoWriter("output.avi", cv2.VideoWriter_fourcc(*"XVID"), 30,(width,height)) out.write(img) out.release()