import time
from VideoCapture import Device
webCam = Device()
name = 1
while(True): # Take pictures forever
webCam.saveSnapshot(name + '.jpg') # Take picture
time.sleep(5) # Wait 5 seconds
name = name+1 # We don't want to write over the same image every time
在Windows上,使用网络摄像头与pygame非常容易。在
例如
在Linux上,它是a bit more complicated,但它仍然是相同的原理。在
但是,如果您希望不延误地执行此操作,则可能会更好:
^{pr2}$相关问题 更多 >
编程相关推荐