1 | initial version |
In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!
VideoCapture cap(deviceId); to VideoCapture cap("filename.avi");
2 | No.2 Revision |
In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!
VideoCapture
cap(deviceId);cap(deviceId);
to
toVideoCapture cap("filename.avi");
3 | No.3 Revision |
In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!
VideoCapture cap(deviceId);
to
VideoCapture cap("filename.avi");
There are many tutorials out there which explain this also!