2 q6541oijhk q6541oijhk 于 2014.10.27 22:51 提问

opencv3.0+vs2010中使用cvQueryFrame出现问题!
CvCapture *capture;
capture = cvCreateCameraCapture(0);
cvNamedWindow("Laplace",0);
IplImage *frame;

while(1)
{
    frame = cvQueryFrame(capture);//运行到这,出现failed to load opencl                            //runtime
    cvShowImage("Laplace",frame);
    if('a' ==cvWaitKey(10))
        break;
}
cvReleaseCapture(&capture);
cvDestroyWindow("Laplace");
return 0;

1个回答

dshizhijun
dshizhijun   2014.11.05 17:02

设备打开的位置,做一下设备是否打开的判断

Csdn user default icon
上传中...
上传图片
插入图片