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

Python • How to lock AWB with Picamera2 API

$
0
0
Hi,

I would like to lock AWB and AE with picamera2, with the following implementation, it looks AWB, AE is still working. Is it possible to lock AE/AWB by Picamera2 API.

Following is the test code I tried,

Code:

picam2 = Picamera2()picam2.set_controls({"AwbEnable": 0, "AeEnable":0})picam2.set_controls({"ExposureTime": 10000, "AnalogueGain": 1.0, "ColourGains": (2.522, 1.897)})picam2.configure(picam2.create_preview_configuration(main={"format": 'RGB888', "size": (800, 800)}))picam2.start()

Statistics: Posted by joshuajxy — Mon Feb 05, 2024 12:44 am



Viewing all articles
Browse latest Browse all 1361