This repository provides pre-built universal OpenCV binaries and demos for Apple platforms: iOS, iPadOS, visionOS, Mac, and simulators.
Building OpenCV as an .xcframework
library allows us to support multiple platforms with a single binary.
Platform | Architecture | |
---|---|---|
iOS/iPadOS | ARM64 | ✅ |
iOS/iPadOS simulator | ARM64 | ✅ |
iOS/iPadOS simulator | x86_64 | ✅ |
visionOS | ARM64 | ✅ |
visionOS simulator | ARM64 | ✅ |
Mac Catalyst | ARM64 | ✅ |
This repository includes a sample project. Here's what you need to do:
Frameworks, Libraries, and Embedded Content
.https://github.com/LightBuzz/OpenCV/assets/562680/e97955fa-6070-4f4f-8dc7-42518573fbac
🪄 Here's the magic script to build OpenCV from scratch:
git clone https://github.com/opencv/opencv.git
git checkout tags/4.9.0
cd opencv
python3 platforms/apple/build_xcframework.py --out build_all \
--iphoneos_deployment_target 14.0 \
--iphoneos_archs arm64 \
--iphonesimulator_archs arm64,x86_64 \
--visionos_archs arm64 \
--visionsimulator_archs arm64 \
--build_only_specified_archs True \
--without objc
We're proud to offer our open-source project as a stepping stone for your computer vision and AI endeavors. But what if your project demands features or integrations that go beyond what our open-source offering provides? Contact us for a custom project solution!
LightBuzz is here to turn your vision into reality. Let's discuss how we can bring more value to your project and drive its success.