Ask Your Question

Revision history [back]

VideoCapture get error message when open file

When i execute code:

VideoCapture cap("filename.avi"); // open the default camera
if(!cap.isOpened())  // check if we succeeded
     return -1;

i always get error that file is not open. Where i can get type of error, error message string? OS Kubuntu, opencv2

VideoCapture get error message when open file

When i execute code:

VideoCapture cap("filename.avi"); // open the default camera
if(!cap.isOpened())  // check if we succeeded
     return -1;

i always get error that file is not open. Where i can get type of error, error message string? OS Kubuntu, opencv2