Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ura14h/OpenCVSample
Sample programs for OpenCV and Swift and iOS and macOS.
https://github.com/ura14h/OpenCVSample
ios macos opencv swift
Last synced: 21 days ago
JSON representation
Sample programs for OpenCV and Swift and iOS and macOS.
- Host: GitHub
- URL: https://github.com/ura14h/OpenCVSample
- Owner: ura14h
- License: mit
- Created: 2015-08-12T04:45:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T04:31:19.000Z (almost 5 years ago)
- Last Synced: 2023-11-07T20:33:23.474Z (about 1 year ago)
- Topics: ios, macos, opencv, swift
- Language: Swift
- Homepage:
- Size: 25.9 MB
- Stars: 120
- Watchers: 6
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - OpenCVSample - Sample programs for OpenCV and Swift and iOS and macOS. (OOM-Leaks-Crash / Graphs Processing And Rendering)
- awesome - OpenCVSample - Sample programs for OpenCV and Swift and iOS and macOS. (OOM-Leaks-Crash / Graphs Processing And Rendering)
README
# OpenCVSample
Sample programs for OpenCV and Swift and iOS and macOS.
![Screenshot on iOS](Screenshot_ios.jpg)
## OpenCV
Those projects uses OpenCV version 4.2.
However, OpenCV binary isn't include in those projects.
You can get OpenCV binary by following steps.### OpenCV for iOS
A binary version is available as it is.
1. Download `opencv-4.2.0-ios-framework.zip` from [https://github.com/opencv/opencv/releases/download/4.2.0/opencv-4.2.0-ios-framework.zip](https://github.com/opencv/opencv/releases/download/4.2.0/opencv-4.2.0-ios-framework.zip).
2. Unpack the file.
3. Copy `opencv2.framework` into `OpenCVSample_iOS` directory.### OpenCV for macOS
No binary version, so you need to build a source version.
1. Prepare CMake. (e.g. `brew install cmake`)
2. Download `opencv-4.2.0.zip` from [https://github.com/opencv/opencv/archive/4.2.0.zip](https://github.com/opencv/opencv/archive/4.2.0.zip).
3. Prepare a working directory. (e.g. `mkdir ~/foo`)
4. Unpack the file into the working directory.
5. Open terminal at the working directory. (e.g. `cd ~/foo`)
6. Run a build script by python 2. `python opencv-4.2.0/platforms/osx/build_framework.py osx`
8. Copy `osx/opencv2.framework` into `OpenCVSample_macOS` directory.## Requirements
* macOS 10.15.2
* iOS 13.3
* Xcode 11.3
* Swift 5## License
Please read [this file](LICENSE).