Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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).