Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5103

Camera board • Re: picamera2 - prevent camera auto-adjusting to light conditions?

$
0
0
Yes, it will be adapting automatically. Also, it's calibrated for "typical" use cases, so very bright lights that are quite different from outdoor lighting would be the kind of thing that might confuse it. You can use the "set_controls" function to control these parameters. You could:

* Turn off the AEC/AGC ("picam2.set_controls({'AeEnable': False})") and AWB (set 'AwbEnable' to False). Maybe do this once they've settled?
* Or you could set specific values for the exposure and gain ('ExposureTime' and 'AnalogueGain'), and the colour gains ('ColourGains').
* You could restrict the AWB range ('AwbMode') so that bright lights won't tend to force it towards daylight.

More information in the Picamera2 manual, section 5.1 and Appendix C.

Statistics: Posted by therealdavidp — Thu Feb 08, 2024 9:51 am



Viewing all articles
Browse latest Browse all 5103

Trending Articles