VideoCapture:捕获图形错误 [英] VideoCapture: Capture Graph Error

查看:366
本文介绍了VideoCapture:捕获图形错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Python(2.7)软件包VideoCapture。当我尝试实例化设备时,出现异常:

I use the Python (2.7) package VideoCapture. When I try to instantiate the Device, I get an Exception:


错误:无法创建捕获图。

Error: Capture Graph could not be created.

我使用 cam = Device(),所以这里没有什么特别的。我有一台笔记本电脑可以正常工作,而另一台笔记本电脑可以得到例外。它们是不同的,但是都具有内部USB网络摄像头。

I use cam = Device(), so nothing special there. I have one laptop where this works without a problem, and another where I get the Exception. They are different, but both have internal USB-Webcams.

一个星期前它起作用了,但现在我只得到了例外。两者都使用Windows 7。

One week ago it worked, but now I only get the exception. Both use Windows 7.

是否有人知道如何解决此问题,或者我如何获得更多信息出了什么问题?

Does anybody have an idea how to resolve this, or how I could get more information what is wrong?

谢谢。

推荐答案

我知道这是一个非常老的线程。第二次实例化设备后,我一直收到此错误。将代码移到主线程可以解决我的问题。

I know this is a really old thread. I kept getting this error after instantiating the Device a second time. Moving the code to the main thread fixed the problem for me.

这篇关于VideoCapture:捕获图形错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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