使用OpenCV拍照,没有led灯在python上

时间:2016-11-16 16:40:19

标签: python windows opencv camera

我能够使用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

1 个答案:

答案 0 :(得分:0)

视频捕捉的属性有get / set方法作为id / value对,led模式是id 412.and led selector 411!从技术上讲,你应该做: vc.set(412,your_value)但是那个(412)是常量。