我能够使用openCV
捕获图像。
我无法弄清楚如何在没有小LED
灯的情况下拍摄照片。有谁知道怎么做?
这是我的功能:
def cheese():
vc = cv2.VideoCapture(0)
if vc.isOpened(): # try to get the first frame
rval, frame = vc.read()
frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
img = Image.fromarray(frame)
return img
else:
rval = False
答案 0 :(得分:0)
视频捕捉的属性有get / set方法作为id / value对,led模式是id 412.and led selector 411!从技术上讲,你应该做: vc.set(412,your_value)但是那个(412)是常量。