Category Archives: OpenCV

Raspberry Pi OpenCV

raspberrypi_python_opencv_smallRecently I have received the Raspberry Pi, Model B. I wanted to try out the OpenCV framework on the Pi. After installing OpenCV and all dependencies I tested something similar to iOS OpenCV Sample I wrote a while back. The project shows detection of a yellow circular shaped objects, face and smile detection. The code is written in Python. With Raspberry Pi I have used a low cost usb web camera I had lying around.

Continue reading Raspberry Pi OpenCV

iOS OpenCV Sample

circle_ocvRecently 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:

  • IMG_0093
  • IMG_0098
  • IMG_0101
  • IMG_0102

If you liked this blog post I’d appreciate if you followed me on Twitter