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

feat: PyPatchMatch shared library for Linux & OSX #62

Open
iwr-redmond opened this issue Feb 27, 2025 · 1 comment
Open

feat: PyPatchMatch shared library for Linux & OSX #62

iwr-redmond opened this issue Feb 27, 2025 · 1 comment

Comments

@iwr-redmond
Copy link

iwr-redmond commented Feb 27, 2025

Windows users are advantaged with the presence of a precompiled binary for PyPatchMatch.

It would be helpful to either offer a similar facility for Linux & OSX users or include relevant PyPI packages, such as opencv-python and cmake, to make the compilation process less reliant on unmanaged external dependencies.

@iwr-redmond
Copy link
Author

This proposal may be possible on Linux (Ubuntu) with some fiddling. The PatchMatch makefile collects two system outputs relating to OpenCV:

pkg-config --cflags opencv4 - location of the cv2 hpp files

These can be found in the source distribution of opencv-python, albeit spread out in multiple folders in the tarball.

pkg-config --libs opencv4 - linked/compiled libraries list

I reckon this may not be needed for the Python wheel, which is statically compiled.

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