-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
,我不能改變常量,所以拍照時我該怎麼做? –