Ask Your Question

Revision history [back]

cvGrabFrame block my Computer

hello,

I have a problem with CvQueryFrame function, when I call this it blocks my computer, the fan start to make noise and the only way to stop this is rebooting the computer.

I'm using opencv2.3.4 and I test cvGrabFrame function also and it block the computer again.

this is a peace of code

CvCapture *capture;
IplImage * imGrab;

capture=cvCaptureFromCAM(0);
while ((imGrab==NULL)&&(numERROR<5))
{
//imGrab= cvQueryFrame(captuer);
int tmp=cvGrabFrame(capture);
imgrab=cvRetrieveFrame(capture,tmp);
if(!imGrab)
{
cerr<<"ERROR:grame is null... iter " <<numError<<endl;
numError;
}

any sugestion