2016-11-16 82 views
-1

我能够使用openCV来拍摄图像。使用OpenCV在python上不使用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

videocapture的属性有get/set方法为ID /值对与被领导模式是id 412和LED选择411!技术上你应该这样做: vc.set(412,your_value),但那个(412)是一个常量。

+0

,我不能改变常量,所以拍照时我该怎么做? –

相关问题