问题描述
使用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!