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

Configuring the project


Create an Xcode project named LightWork using the Single View Application template. Configure the project according to the instructions in the Configuring the project section in Chapter 1, Setting Up Software and Hardware. Next, we will take a few additional configuration steps because LightWork depends on more frameworks and requires a camera.

Adding frameworks

Besides its dependency on opencv2.framework, LightWork also depends on the following standard frameworks from the iOS SDK:

  • Accelerate.framework: This is optional but recommended because it enables OpenCV to use advanced optimizations

  • AssetsLibrary.framework

  • AVFoundation.framework

  • CoreGraphics.framework

  • CoreMedia.framework

  • CoreVideo.framework

  • Photos.framework

  • QuartzCore.framework

  • Social.framework

  • UIKit.framework

Add these frameworks to the Build Phases | Link Binary With Libraries section of the project settings.

Specifying the camera requirement

Currently, there is a camera in all devices that support...