Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

if you play a video file, it will come eventually to an end, and cv2.Videoapture will deliver empty frames.

you're already checking the ret value, but you need something like:

if(ret == False):
    break; # end of movie