Creating an iOS project that uses OpenCV
In this section we will create a demo application for iPhone/iPad devices that will use the OpenCV (Open Source Computer Vision) library to detect markers in the camera frame and render 3D objects on it. This example will show you how to get access to the raw video data stream from the device camera, perform image processing using the OpenCV library, find a marker in an image, and render an AR overlay.
We will start by first creating a new XCode project by choosing the iOS Single View Application template, as shown in the following screenshot:
Now we have to add OpenCV to our project. This step is necessary because in this application we will use a lot of functions from this library to detect markers and estimate position position.
OpenCV is a library of programming functions for real-time computer vision. It was originally developed by Intel and is now supported by Willow Garage and Itseez. This library is written in C and C++ languages. It also has...