Skip to content

How to stop a running exposure? #589

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

You must be logged in to vote

Hi, thanks for the question.

When the camera is running, we normally delegate camera-related operations to the event loop which is why the "official" picam2.stop() has to wait for the event loop to run again (when a frame turns up). This is probably something we could review for a future release.

In the meantime, I would expect that what you're doing will probably be OK so long as there aren't any other camera operations in progress and you wait a few moments before doing anything else. Though this seems a slightly grey area!

Replies: 1 comment 1 reply

Comment options

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

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