Ask Your Question

ekaitzaznar's profile - activity

2013-01-04 04:09:54 -0600 asked a question 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