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

How to Determine Image Dimensions Efficiently? #66

Open
b-simjoo opened this issue Nov 30, 2024 · 2 comments
Open

How to Determine Image Dimensions Efficiently? #66

b-simjoo opened this issue Nov 30, 2024 · 2 comments

Comments

@b-simjoo
Copy link

I'm looking for a better way to determine image dimensions before initializing shared memory. The current approach—connecting to the camera with OpenCV, retrieving the image size, and then setting up shared memory—isn't optimal.

If there's a more efficient solution, I couldn't find it in the tutorials. Any guidance or suggestions would be greatly appreciated!

@elsampsa
Copy link
Owner

elsampsa commented Dec 5, 2024

A quick comment: that god'damn "readthedocs.io" - not sure how it gets generated (!). Please use always valkka.org.
Will comment on your actual issue in a while..

@elsampsa
Copy link
Owner

elsampsa commented Dec 5, 2024

In this lesson: https://elsampsa.github.io/valkka-examples/_build/html/lesson_4.html
what you actually do, is:
Define the filterchain - while doing that, you also define the expected image dimensions. This before starting any threads or multiprocesss - so you do know them beforehand any connection to the camera.

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

2 participants