Ask Your Question

Revision history [back]

VideoCapture as many prototype. One of them is for reading from a video file. See the doc, and use a code like this one:

cv::VideoCapture cap("myvideofile.avi");

instead of reading from camera first device (aka: cap(0); ).