View on GitHub

OpenCVSample

A sample swift iOS app of using OpenCV to modify image taken by camera

OpenCVSample

OpenCVSample is an iOS app which contains an OpenCV wrapper file OpenCVSample.mm for integrating OpenCV APIs into iOS swift project.

System environment

  1. macOS Sierra Version 10.12.5
  2. Xcode Version 8.3.3 (installed from App Store)
  3. OpenCV 3.2 framework (downloaded from OpenCV website)

Build steps

  1. git clone this project
  2. download OpenCV 3.2 framework zip file and unzip it
  3. copy the unzipped file opencv2.framework to OpenCVSample/OpenCVSample
  4. build the project in Xcode

Tested devices

  1. iPhone 7 plus with iOS 10.2

Features

Notes

  1. Follow the instructions of OpenCV tutorial “Installation in iOS” to build iOS framework. http://docs.opencv.org/3.2.0/d5/da3/tutorial_ios_install.html

  2. Copy the manually built opencv2.framework to ~//OpenCVSample/OpenCVSample ```