1 | initial version |
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); ).