【问题标题】:Taking picture using OpenCV without led light on python在 python 上使用没有 LED 灯的 OpenCV 拍照
【发布时间】:2017-03-30 23:15:50
【问题描述】:

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

【问题讨论】:

    标签: python windows opencv camera


    【解决方案1】:

    videocapture 的属性有 get/set 方法作为 id/value 对,led 模式是 id 412。和 led 选择器 411 !从技术上讲,您应该这样做: vc.set(412,your_value ) 但那个 (412) 是一个常数。

    【讨论】:

    • ,我不能改变常数,所以我要怎么做才能拍照?
    猜你喜欢
    • 1970-01-01
    • 2012-04-01
    • 2016-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多