Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is your capturing device actually capturing frames in the first place? Could you check it with:

VideoCapture cap(0); // open the default camera
if(!cap.isOpened())  // check if we succeeded
     cout<< "Something is wrong, I am not receiving anything!"<<endl;

A wild guess: Is your capturing device actually capturing frames in the first place? Could you check it with:

VideoCapture cap(0); // open the default camera
if(!cap.isOpened())  // check if we succeeded
     cout<< "Something is wrong, I am not receiving anything!"<<endl;

A wild guess: Is your capturing device actually capturing frames in the first place? Could you check it with:

VideoCapture cap(0); // open the default camera
if(!cap.isOpened())  // check if we succeeded
     cout<< "Something is wrong, I am not receiving anything!"<<endl;

More can be found here.