beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.08k stars 155 forks source link

Hi,I have a question about using opencv-python in iOS #178

Closed GongWeiBinGitHub closed 1 year ago

GongWeiBinGitHub commented 1 year ago

What is the problem or limitation you are having?

When generating the xcode project, I imported opencv-python, but the message "ERROR: Failed building wheel for cmake "was displayed Failed to build cmake ERROR: Could not build wheels for cmake, which is required to install pyproject.toml-based projects" I did not find the binary package on anaconda.org. What should I do if I want to import opencv-python into an xcode project

Describe the solution you'd like

I want to use opencv-python in the generated xcode for iOS project

Describe alternatives you've considered

I don't have an alternative

Additional context

No response

freakboy3742 commented 1 year ago

The answer for this question is the same as the one you raised about numpy. OpenCV is a package that has binary modules. Those modules need to be compiled for iOS.

Unfortunately, we haven't yet build OpenCV for iOS as part of the BeeWare project.

GongWeiBinGitHub commented 1 year ago

That said, opencv-python is currently not available in iOS, so are there any alternatives

freakboy3742 commented 1 year ago

You'll have to make that decision on your own. I can't judge what your requirements are. The list of packages that BeeWare currently supports is here

GongWeiBinGitHub commented 1 year ago

I have some image processing needs that require opencv-python, and if there's no way to do it, I'll have to give up integrating python on ios