Recently I’ve implemented some of the OpenCV functionality in an iOS project. Based on that, I have created a sample project with object recognition and general image processing. 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.
You may check the sample project at my GitHub repo:
Real and threshold images:
If you liked this blog post I’d appreciate if you followed me on Twitter