|
Getting somewhere when changing settings in camera_opencv.py
Added camera capture settings to reduce resolution and frame rate. That significantly improves performance of everything.
Added setting to adjust exposure an gain. This makes the image much brighter in low light conditions. Still experimenting with this.
Auto exposure and balance doesn't appear to work yet.
camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
camera.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
camera.set(cv2.CAP_PROP_FPS, 10)
camera.set(cv2.CAP_PROP_EXPOSURE, 3000)
camera.set(cv2.CAP_PROP_GAIN, 10)
# camera.set(cv2.CAP_PROP_AUTO_WB, 1)
# camera.set(cv2.CAP_PROP_AUTO_EXPOSURE, 1)
# camera.set(cv2.CAP_PROP_CONVERT_RGB, 1) |
|