2016-11-16 81 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

,我不能改變常量,所以拍照時我該怎麼做? –

相關問題