If you are using old webcam to capture images in Raspberry pi, you may get dark images in very old models of webcams, The best solution is to skip few frames before capturing images.
To demonstrate, I am using fswebcam from command prompt to capture image with this command fswebcam -r 640X480 -s 15 image2.jpg where "-s 15" would skip first 15 frames before capturing image.
if you need installation instruction for fswebcam, please go to raspberry pi site here
To demonstrate, I am using fswebcam from command prompt to capture image with this command fswebcam -r 640X480 -s 15 image2.jpg where "-s 15" would skip first 15 frames before capturing image.
if you need installation instruction for fswebcam, please go to raspberry pi site here