ManyMasks divides its application logic between two view controllers. The first view controller enables the user to capture and preview real faces. The second enables the user to review, save, and share merged faces. A type of callback method called a segue enables the first view controller to instantiate the second and pass a merged face to it.
Import copies of the
VideoCamera.m files that we created in Chapter 2, Capturing, Storing, and Sharing Photos. These files contain our
VideoCamera class, which extends OpenCV's
CvVideoCamera to fix bugs and add new functionality.