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

Possible to generate Python wheel? #22

Open
Dapid opened this issue Apr 5, 2024 · 1 comment
Open

Possible to generate Python wheel? #22

Dapid opened this issue Apr 5, 2024 · 1 comment

Comments

@Dapid
Copy link
Contributor

Dapid commented Apr 5, 2024

I have successfully installed OpenCV, including the Python bindings.

print(cv2.getBuildInformation())

General configuration for OpenCV 4.9.0 =====================================
  Version control:               unknown

  Extra modules:
    Location (extra):            /home/ica/opencv_contrib/modules
    Version control (extra):     unknown

  Platform:
    Timestamp:                   2024-03-22T14:59:28Z
    Host:                        Linux 5.10.192-tegra aarch64
[...]

The problem is that when I install a package that depends on opencv, it will not see this and pull the python-opencv wheel, which has fewer capabilities.

There is another repo that builds the wheels, would it be possible to integrate that into this script? Or adjust it to generate the right output? If not, we could export the CMake options in this repo into the wheel building script.

The uglier alternative is to create a dummy wheel that serves as a placeholder.

@Qengineering
Copy link
Owner

A common problem. To overcome ownership issues, I use virtual environments.
The wheels you're referring to are all CPU-based. When integrating CUDA acceleration, you're facing too much deviation. Not only the Python version but the CUDA architecture must also be taken into account.

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