Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
OpenCVSample.xcodeproj Initial commit Mar 20, 2013
OpenCVSample Initial commit Mar 20, 2013
opencv2.framework Initial commit Mar 20, 2013
README.md Update README.md Mar 20, 2013



iOS OpenCV Sample



The sample project is based around the AbstractOCVViewController class with main image capture and transformation from iOS captured image to OpenCV IplImage object. An AbstractOCVViewController subclass needs to override and implement the didCaptureIplImage: method. The captured and processed IplImage object is passed here as a parameter. After image manipulation using the OpenCV framework, the didFinishProcessingImage: method is called. The method will handle the transformation and presentation of the IplImage in an UIImageView. There are three samples in this project - color circle detection, smile detection and image blur detection so you can try and test OpenCV yourself.


Used for detecting circular objects of certain color defined by hue. Change slider values in order to detect different colors. Set debug property to YES in order to see threshold image.


When smile is detected, the captured image is presented in the top right corner of the screen.


I just blured the image here. You may want to try OpenCV yourself here.