Skip to content

Temporal delay while setting/changing exposure #152

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

You must be logged in to vote

Hi, there is unfortunately no way to get gain/exposure requests to take place immediately. For a start the sensor takes a few frames anyway, and then they get backed up at the end of libcamera's request queue.

One easy approach is the one taken by the Mertens merge example which simply stops and restarts the camera, setting the desired exposure/gain before restarting it. This is guaranteed to work, but it is somewhat slow.

Another idea that might help, especially if you want to capture many different exposures, would be to start the camera and then keep requesting the exposures you haven't seen yet, and "ticking them off" when you do. You have to be a bit careful because you can't guarant…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cpixip
Comment options

@davidplowman
Comment options

@cpixip
Comment options

@meawoppl
Comment options

@davidplowman
Comment options

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