Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try to read AVI file

*I try to open an AVI file. The return of the open method is false, although the file exists.Here below the snippet code. Any idea, suggestion is welcome.

include "opencv2/opencv.hpp"

using namespace cv; using namespace std; int main(int argc , char* argv []) { VideoCapture cap(0); bool ok = cap.open (argv [1]); if (ok == false) { cout << "Problem when opening file." << endl; return -1; } return(0); }

Try to read AVI file

*I I try to open an AVI file. The return of the open method is false, although the file exists.Here exists.
Here
below the snippet code. Any idea, suggestion is welcome.

include "opencv2/opencv.hpp"

#include "opencv2/opencv.hpp"
  

using namespace cv; using namespace std; int main(int argc , char* argv []) { VideoCapture cap(0); bool ok = cap.open (argv [1]); if (ok == false) { cout << "Problem when opening file." << endl; return -1; } return(0); }

}