cvCapturefromCAM()返回NULL [英] cvCapturefromCAM() returns NULL

查看:164
本文介绍了cvCapturefromCAM()返回NULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用cvCapturefromCAM()来显示摄像机视频.但是,如果进行了某些VT(视频)调用,则cvCapturefromCAM()返回NULL.根据我的分析,如果相机已经启动,捕获将返回NULL.因此,在进行视频通话时,videoengine lib已启动了摄像头.而且我也没有使用cvCapture指针来释放相机.请帮助我解决这种僵局.

Iam using cvCapturefromCAM() to display the camera video. But if some VT(video) call is made, cvCapturefromCAM() is returning NULL. according to my analysis it is like, if the camera has already been started , capture will return NULL. so while doing video call, camera has bee started by the videoengine lib. And i donot hav the cvCapture pointer also to release the camera. Please help me how to go about this deadlock..

谢谢 盖亚特里·德维

推荐答案

进行此修改,它应该可以工作.我以前也有这个问题.

Make this modification and it should work. I also had this issue before.

CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY );

这篇关于cvCapturefromCAM()返回NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆