Skip to content

Set exposure bias? #131

Answered by davidplowman
abey79 asked this question in Q&A
May 22, 2022 · 5 comments · 2 replies
Discussion options

You must be logged in to vote

Just to add one more thing on this topic. The thing about "ev" is that it adjusts the target the AGC/AEC is aiming for, so once you change it, it takes a little while to have an effect. If you want to adjust the exposure just for a capture, this kind of thing works:

from picamera2 import Picamera2
import time

picam2 = Picamera2()
preview_config = picam2.preview_configuration()
still_config = picam2.still_configuration()
picam2.configure(preview_config)
picam2.start()

while True:
    time.sleep(2)
    metadata = picam2.capture_metadata()
    exposure = metadata["ExposureTime"]
    gain = metadata["AnalogueGain"] * metadata["DigitalGain"]
    picam2.stop()
    
    picam2.configure(still_…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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