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

Provide support for iOS wheels #807

Open
4 tasks done
ydesgagn opened this issue Feb 24, 2023 · 5 comments
Open
4 tasks done

Provide support for iOS wheels #807

ydesgagn opened this issue Feb 24, 2023 · 5 comments

Comments

@ydesgagn
Copy link

Expected behaviour

Would it be possible to add support to target iOS with:

  • iphoneos arm64
  • iphonesimulator arm64
  • iphonesimulator x86_64

OpenCV for iOS is distributed as a framework and it's working well. So it should be possible to modify the Python part to build it.

Actual behaviour

All attempts at building failed.

Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python
@VadimLevin
Copy link

Thanks for valuable suggestion, can you provide at least 1 example of such library?
What is a use case for Python bindings on iOS?

@ydesgagn
Copy link
Author

We are using this to access OpenCV directly in Swift.

https://docs.opencv.org/4.x/d5/da3/tutorial_ios_install.html

In our case, we write a lot of Python related code for AI and data sciences for proof of concepts. When this is production ready we embed some of the Python code (not UI) to iOS with Briefcase (https://beeware.org/project/projects/tools/briefcase/) using numpy, sklearn or scipy. To do that, we need pre-built native wheels for iOS. In this specific case, the Python OpenCV wheel would be required to do image processing and curve fitting (not possible with other libraries).

@VadimLevin
Copy link

Is it possible to build numpy iOS wheel? Quick search doesn't give any result

@ydesgagn
Copy link
Author

Sure, check all the available wheels for iOS on this site.

https://anaconda.org/beeware/repo?sort=_name&sort_order=asc

They are adding more every month.

@timrid
Copy link

timrid commented Mar 23, 2025

I am also looking for a way to use opencv on iOS.

FYI: The BeeWare team is working hard to advance iOS and Android support in the Python ecosystem:

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

3 participants