VideoCapture get error message when open file

asked 2017-09-10 10:57:19 -0600

updated 2017-09-10 14:13:45 -0600

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

edit retag flag offensive close merge delete

Comments

is filename.avi exist in your working directory?

sturkmen gravatar imagesturkmen ( 2017-09-10 14:27:48 -0600 )edit

Of course there is.

PaulVesnin gravatar imagePaulVesnin ( 2017-09-12 10:31:47 -0600 )edit