Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stale old images delivered on capture() #681

Open
dronus opened this issue Mar 10, 2021 · 0 comments
Open

Stale old images delivered on capture() #681

dronus opened this issue Mar 10, 2021 · 0 comments

Comments

@dronus
Copy link

dronus commented Mar 10, 2021

When using capture() with an PiRGBArray (using 'bgr' format, not sure if that matters), on the long term stale images are delivered. Sometimes the is an exception on the capture call (io error, maybe caused by bad wiring) before.

On subsequent calls, capture() delivers a frame that is taken at the last call before.

This may stack up, eg. capture() deliver frames taken at two calls ago or maybe even more. But two happens for sure.

So there seems to be some FIFO buffering that is not properly flushed if the frame is not delivered eg. by an exception happening. So the next time capture() is called, it just triggers the camera again and adds another frame to this buffer, and then delivers the older one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant