from VideoCapture import Device
import threading
class my_camera(threading.Thread):
def __init__(self):
super(my_camera,self).__init__()
def run(self):
cam=Device()
cam.saveSnapshot('jushhhtin.jpg')
del cam
if __name__=='__main__':
camera=my_camera()
camera.start()
错误信息:
cam=Device()
D:\python\lib\VideoCapture.py line 19 in __init__
self.dev=vidcap.new_Dev(devnum,showVideoWindow)
Error:creation of the filter graph failed
python 2.7
VideoCapture 是python 中调用摄像头的模块
http://videocapture.sourceforge.net/
python 中新建个线程,然后在该线程下调用摄像头总出现这样的错误