Book Image

iOS Application Development with OpenCV 3

By : Joseph Howse
4 (1)
Book Image

iOS Application Development with OpenCV 3

4 (1)
By: Joseph Howse

Overview of this book

iOS Application Development with OpenCV 3 enables you to turn your smartphone camera into an advanced tool for photography and computer vision. Using the highly optimized OpenCV library, you will process high-resolution images in real time. You will locate and classify objects, and create models of their geometry. As you develop photo and augmented reality apps, you will gain a general understanding of iOS frameworks and developer tools, plus a deeper understanding of the camera and image APIs. After completing the book's four projects, you will be a well-rounded iOS developer with valuable experience in OpenCV.
Table of Contents (13 chapters)
iOS Application Development with OpenCV 3
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Planning a face merging application


When ManyMasks opens, it will present a live camera view, a toolbar, and two small images of a masked face in the lower corners. Whenever the application detects a human face, it will draw the following shapes:

  • A yellow rectangle around the face region

  • A red rectangle around the left eye region

  • A red circle at the left eye's center or pupil

  • A green rectangle around the right eye region

  • A green circle at the right eye's center or pupil

  • A blue circle at the tip of the nose

Similarly, for a detected cat face, the application will draw the following shapes:

  • A white rectangle around the face region

  • A red circle at the left eye's center or pupil

  • A green circle at the right eye's center or pupil

  • A blue circle at the tip of the nose

Note

For our purposes, the left and right directions refer to the viewer's perspective, not the subject's perspective. The OpenCV developers, and most authors in computer vision, also follow this convention.

The following screenshot shows how the...