opencv3.0,从摄像头获取一帧图像。
opencv吧
全部回复
仅看楼主
level 2
沧海梦帆 楼主
CvCapture *capture;
capture = cvCreateCameraCapture(0);
cvNamedWindow("Laplace",0);
IplImage *frame;
while(1)
{
frame = cvQueryFrame(capture);//运行至此处出现failed to loaded opencl runtime
cvShowImage("Laplace",frame);
if(*a* ==cvWaitKey(10))
break;
}
用的是opencv3.0 和 vs2010
为什么会出现这种错误。
2014年10月27日 14点10分 1
level 8
I had encounter the same problem too, heres my solution:
goto intel website and download the OpenCL library, it is 2014 new version when you download it then just unzip it with tar
inside will have an install sh file, install it. then you can have openCL support.
If you install fail because of update-alternatives errors, maybe you are using ubunto, and the intel install package has a wrong setting with it.
you have to change it, and xfanzone did a very good job on this. It's his creadit, here's the link :http://xfanzone.me/fixing-opencl-deb.html
download the patch zip file and patch your opencl deb.
install it again, should work fine
2014年10月28日 02点10分 2
去谷歌一下,很多人都遇到这个问题。
2014年10月28日 02点10分
回复 888哈喽888 :opencl libry 是个什么东西,intel的网站上没有啊。我的电脑是AMD的显卡,网上说不能直接支持opencl,要amd的sdk。现在被搞晕了,现在打算装个opencv2.4.9,看一下还有没有这个问题
2014年10月28日 14点10分
回复 沧海梦帆 :我用的2.4.8,没有这个问题
2014年10月30日 00点10分
level 2
能说说你用的是什么摄像头么?
2014年11月04日 13点11分 3
我换了2.4.9版本后好了!就普通的摄像头啊
2014年11月04日 14点11分
3.0有很多编程的未知错误,我以前也用3.0,发现有的错误莫名其妙,后来换到2.4.9就好了,唉
2016年04月06日 04点04分
level 5
楼主求VS和OPENCV安装包
2015年11月18日 12点11分 6
level 14
这种写法都是老版本c的方式,时候2.3之前的
之后基本都转为c++了,通过videocapture 获取 通过mat类型存储
2015年11月24日 06点11分 7
level 1
楼主qq多少,我也是想采集图像,求帮助
2016年04月16日 06点04分 8
level 1
楼主,我来挖坟,我也是同样的毛病
2017年08月01日 01点08分 9
1