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

Heavy Processing on one frame #140

Open
marcown opened this issue Sep 5, 2023 · 0 comments
Open

Heavy Processing on one frame #140

marcown opened this issue Sep 5, 2023 · 0 comments

Comments

@marcown
Copy link

marcown commented Sep 5, 2023

Hey,

thanks for the nice repo!

Would be possible to do some heavy processing after each frame (up to 2s using some machine learning model and the ort lib (you have to create a session at the start of the program loading the model to the ram)) and when you capture the next frame it should get the last image of the camera and not some old buffer?

I tried to use the threaded camera in the examples folder, but, I don't know why, it was way slower than the not threaded example (i did all the heavy processing in the callback function, if you do it in the loop outside the threaded.last_frame or threaded.poll_frame are also quite slow)

Could you help me with some boilerplate code how to do it right? I am rather new to rust.

Thanks!

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