I am trying to take a picture using the webcam on my Mac. I am using OpenCV to do so. However, if the lights are off in the room, the picture is extremely dark. Is there any way to use 'flash' to get light into the image? Or are there any other alternatives to get light into the image?
If you have any questions or need more information, feel free to ask.
Here is my code to take a picture:
import cv2
camera = cv2.VideoCapture(0)
input('Press Enter to capture')
return_value, image = camera.read()
cv2.imwrite('opencv'+'.png', image)
del(camera)