Skip to content

Capture Image with External Lighting #1043

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

You must be logged in to vote

In general, the camera system is quite heavily pipelined, so the time you receive a frame doesn't tell you much about when it was captured. There is actually a "SensorTimestamp" field in the image metadata that tells you when the first pixel of the frame was received.

But even that isn't good enough, because the image will start to be exposured well before the first pixel is read out. The Picamera2 capture_request() function actually has a feature to handle this. If you pass the flush parameter as True, then it will guarantee the no pixel is exposed before that moment. So your code would look something like

    request = picam2.capture_request(flush=True)
    request.save('main', "save.jp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by waikeat2397
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