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

Configuring internal frame queue #39

Open
ghost opened this issue Mar 15, 2022 · 1 comment
Open

Configuring internal frame queue #39

ghost opened this issue Mar 15, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 15, 2022

I'm using libcamera to grab frames on demand in some custom code, and it seems as though there is a 5-frame FILO queue that any given frame has to pass through before reaching my code, so that the result of any commanded acquisition is not seen until 5 acquisitions later. Is there any way to configure this so that the result of a commanded acquisition is seen by the caller immediately?

@kbingham
Copy link
Owner

This sounds like you are looking into the per-frame control feature of libcamera. That is not fully supported yet, but we're actively working on it currently. (it's not straightforward, as there are many components in play, with variable pipeline depths).

Can you share an example test code that demonstrates the requirements you are trying to meet?

Furthermore, I wonder if you are on an RPi, and in fact seeing that RPi drop frames to start with until the algorithms converge. How are you measuring or otherwise identifying this delay? It may be helpful to discuss how you are architecting your application to suit your needs.

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