{"id":23158111,"url":"https://github.com/lightbuzz/opencv","last_synced_at":"2025-05-09T01:20:47.283Z","repository":{"id":218119128,"uuid":"700915491","full_name":"LightBuzz/OpenCV","owner":"LightBuzz","description":"OpenCV for iOS and VisionOS.","archived":false,"fork":false,"pushed_at":"2024-01-19T18:44:32.000Z","size":1635,"stargazers_count":23,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T20:11:46.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LightBuzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-05T14:41:43.000Z","updated_at":"2025-02-07T06:54:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c99c247-5c02-4207-a010-140c493803db","html_url":"https://github.com/LightBuzz/OpenCV","commit_stats":null,"previous_names":["lightbuzz/opencv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FOpenCV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FOpenCV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FOpenCV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FOpenCV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightBuzz","download_url":"https://codeload.github.com/LightBuzz/OpenCV/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171929,"owners_count":21865425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T22:18:05.503Z","updated_at":"2025-05-09T01:20:47.263Z","avatar_url":"https://github.com/LightBuzz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCV for Apple platforms\n\nThis repository provides pre-built universal OpenCV binaries and demos for Apple platforms: iOS, iPadOS, visionOS, Mac, and simulators.\n\n![opencv-vision-pro-cover](https://github.com/LightBuzz/OpenCV/assets/562680/8908794a-c235-4ffd-afa5-a3a79fcc0af7)\n\n## Supported platforms and architectures\n\nBuilding OpenCV as an `.xcframework` library allows us to support multiple platforms with a single binary.\n\n| Platform | Architecture | |\n| --- | --- | --- |\n| iOS/iPadOS | ARM64 | ✅ |\n| iOS/iPadOS simulator | ARM64 | ✅ |\n| iOS/iPadOS simulator | x86_64 | ✅ |\n| visionOS | ARM64 | ✅ |\n| visionOS simulator | ARM64 | ✅ |\n| Mac Catalyst | ARM64 | ✅ |\n\n### [⬇️ Download opencv2.xcframework](https://github.com/LightBuzz/OpenCV/tree/main/OpenCV-Apple-Mutliplatform/opencv2.xcframework)\n\n## How to run\n\nThis repository includes a [sample project](https://github.com/LightBuzz/OpenCV/tree/main/OpenCV-Apple-Mutliplatform). Here's what you need to do:\n\n1. [Download opencv2.xcframework](https://github.com/LightBuzz/OpenCV/tree/main/OpenCV-Apple-Mutliplatform/opencv2.xcframework).\n1. Create an Xcode multiplatform project.\n2. Add opencv2.xcframework under `Frameworks, Libraries, and Embedded Content`.\n3. Create a [Bridging Header](https://github.com/LightBuzz/OpenCV/blob/main/OpenCV-Apple-Mutliplatform/OpenCV-Apple-Mutliplatform/OpenCV-Apple-Mutliplatform-Bridging-Header.h).\n4. Create a [Prefix Header](https://github.com/LightBuzz/OpenCV/blob/main/OpenCV-Apple-Mutliplatform/OpenCV-Apple-Mutliplatform/PrefixHeader.pch).\n5. Add and populate our [OpenCV wrapper](https://github.com/LightBuzz/OpenCV/blob/main/OpenCV-Apple-Mutliplatform/OpenCV-Apple-Mutliplatform/OpenCVWrapper.mm).\n6. Select your build target (iPhone device, visionOS device, simulator, etc).\n7. Run.\n\nhttps://github.com/LightBuzz/OpenCV/assets/562680/e97955fa-6070-4f4f-8dc7-42518573fbac\n\n## Build OpenCV for all Apple platforms\n\n👉 [Read the complete guide](https://lightbuzz.com/?p=6530\u0026preview=true)\n\n🪄 Here's the magic script to build OpenCV from scratch:\n\n```Bash\ngit clone https://github.com/opencv/opencv.git\ngit checkout tags/4.9.0\ncd opencv\n\npython3 platforms/apple/build_xcframework.py --out build_all \\\n--iphoneos_deployment_target 14.0 \\\n--iphoneos_archs arm64 \\\n--iphonesimulator_archs arm64,x86_64 \\\n--visionos_archs arm64 \\\n--visionsimulator_archs arm64 \\\n--build_only_specified_archs True \\\n--without objc\n```\n\n## 💡 Need a custom solution?\n\nWe'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!\n\n- **A Decade of Excellence**: With over 10 years of expertise in Computer Vision and AI, we consistently deliver top-tier solutions.\n- **Unparalleled Expertise**: Working with Apple Vision Pro since its inception, we've been at the forefront of cutting-edge technologies.\n- **Custom Solutions**: Every project has unique requirements. Our team is here to develop bespoke solutions tailored exclusively to your needs.\n\n### 🔗 [Contact LightBuzz](https://lightbuzz.com/contact/) 🚀\n\nLightBuzz is here to turn your vision into reality. Let's discuss how we can bring more value to your project and drive its success.\n\n[Contact us today ➡️](https://lightbuzz.com/contact)\n\n## 👋 Stay in touch\n\n- [Website](https://lightbuzz.com)\n- [LinkedIn](https://linkedin.com/company/lightbuzz)\n- [YouTube](http://youtube.com/c/lightbuzzsoftware)\n- [Medium](https://medium.com/lightbuzz)\n- \n\n## 📖 Resources\n\n- [OpenCV source code | GitHub](https://github.com/opencv/opencv/)\n- [OpenCV: Installation in iOS | Official Guide](https://docs.opencv.org/4.8.0/d5/da3/tutorial_ios_install.html)\n- [Build OpenCV Contrib as a .xcframework, for iOS, on a M1 | elfitz.com](https://weekly.elfitz.com/2022/06/14/build-opencv-contrib-for-ios/)\n- [Integrating OpenCV to your Swift iOS Project in Xcode and Working with UIImages | by Poorna Chathuranjana | Medium](https://medium.com/@hdpoorna/4c614e62ac88)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightbuzz%2Fopencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightbuzz%2Fopencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightbuzz%2Fopencv/lists"}