-
Notifications
You must be signed in to change notification settings - Fork 51
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
Implementing new bindings with libuvc #90
Comments
Happy to hear back from you! For now, I suggest doing the following:
If that all works as expected, we can think about merging this functionality into the official pyuvc. |
Thank you! Will give it a try and report in the next couple of days. |
Hey @papr can you clarify what you mean in step 3 - init and update the submodules? Basically, I got stuck in step 3, when trying to build pyuvc:
I'm on Ubuntu 20.04.4 LTS, and do have version 0.15.0 of PYUVC installed. |
As a first step, please uninstall version 0.15.0 of PYUVC. Secondly, please set this env var before running the pip install command: export FORCE_LOCAL_LIBUVC_BUILD=ON I have also added it to the README instructions. |
I just tried, and I am still getting the same error. |
To apply your custom libuvc changes, see steps 5 and 6. With the setting above, it should be building the libuvc that is checkout in the @yurikleb Please check your cmake version. The build requires 3.24 or higher. |
I managed to compile PYUVC! Notes for step 3 (on Linux) following the instructions here:
init and update submodules:
build:
Spent long time trying to debug this compiler error: More updates to follow.... |
We are using PYUVC to control and capture images via USB microscopes.
We need to be able to retrieve the "Pixel-Dimension/Distance" property from the microscope to know the real-world scale (in millimetres) of the images we capture.
The microscope manufacturer was able to provide us with a patch for libuvc to implement a "uvc_get_pixel_distance" method. However, they cannot advise us on how to implement a binding to this property/control in pyuvc.
What would be the best way to add such binding?
The text was updated successfully, but these errors were encountered: