In this recipe, we will learn how we can capture images the camera. We'll use the
CvPhotoCamera class, which is a part of OpenCV, and apply our retro effect from the previous recipe.
For this recipe, you will need a real iOS device, because we're going to take photos. The source code can be found in the
Recipe08_TakingPhotosFromCamera folder in the code bundle that accompanies this book.
The following are the steps required to apply our filter to a photo, taken with camera app:
ViewControllerinterface should implement the protocol from
CvPhotoCameraDelegate, and should have a member of the