Skip to content

I want to turn off AE and AWB and control the camera my self #592

Answered by davidplowman
MikeLerwill99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for the question.

To control the camera brightness yourself, please use the picam2.set_controls method to adjust the "ExposureTime" and "AnalogueGain" values. Setting both of these will automatically disable the auto AGC/AEC.

To control the AWB, set the "ColourGains" control. Again, doing so will disable the auto AWB.

When the camera starts, by default AGC/AEC and AWB are both already running. You can leave them a moment and then read the "ExposureTime", "AnalogueGain" and "ColourGains" values from the image metadata (for example, use picam2.capture_metadata()).

At this point you can set those values explicitly, or you can just turn off "AeEnable" and "AwbEnable" which will fix…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MikeLerwill99
Comment options

Answer selected by MikeLerwill99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants