Skip to content

Changing the exposure in HDR #907

Answered by torhans
torhans asked this question in Q&A
Dec 29, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks, and apologies for not returning earlier.

I actually sort of figured it out on my own. The following code mostly do what I'm after

from picamera2 import Picamera2
from libcamera import controls

tuning = Picamera2.load_tuning_file("imx708.json")
algo = Picamera2.find_tuning_algo(tuning, "rpi.agc")
algo["channels"][1]['base_ev']=1
algo["channels"][2]['base_ev']=100

picam2 = Picamera2(tuning=tuning)
conf=picam2.create_video_configuration()
picam2.configure(conf)
picam2.set_controls({"HdrMode": controls.HdrModeEnum.MultiExposureUnmerged})

picam2.start()
for i in range(10):
    array1, metadata1 = picam2.capture_arrays()
    array2, metadata2 = picam2.capture_arrays()
print(metadata1…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by torhans
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