You are previewing Instant OpenCV for iOS.
O'Reilly logo
Instant OpenCV for iOS

Book Description

Learn how to build real-time computer vision applications for the iOS platform using the OpenCV library

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results

  • Build and run your OpenCV code on iOS

  • Become familiar with iOS fundamentals and make your application interact with the GUI, camera, and gallery

  • Build your library of computer vision effects, including photo and video filters

In Detail

Computer vision on mobile devices is becoming more and more popular. Personal gadgets are now powerful enough to process high-resolution images, stitch panoramas, and detect and track objects. OpenCV, with its decent performance and wide range of functionality, can be an extremely useful tool in the hands of iOS developers.

Instant OpenCV for iOS is a practical guide that walks you through every important step for building a computer vision application for the iOS platform. It will help you to port your OpenCV code, profile and optimize it, and wrap it into a GUI application. Each recipe is accompanied by a sample project or an example that helps you focus on a particular aspect of the technology.

Instant OpenCV for iOS starts by creating a simple iOS application and linking OpenCV before moving on to processing images and videos in real-time. It covers the major ways to retrieve images, process them, and view or export results. Special attention is also given to performance issues, as they greatly affect the user experience.Several computer vision projects will be considered throughout the book. These include a couple of photo filters that help you to print a postcard or add a retro effect to your images. Another one is a demonstration of the facial feature detection algorithm. In several time-critical cases, the processing speed is measured and optimized using ARM NEON and the Accelerate framework.

OpenCV for iOS gives you all the information you need to build a high-performance computer vision application for iOS devices.

Table of Contents

  1. Instant OpenCV for iOS
    1. Instant OpenCV for iOS
    2. Credits
    3. About the Authors
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant OpenCV for iOS
      1. Getting started with iOS (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Xcode
          2. Objective-C
      2. Displaying an image from resources (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Cocoa design patterns
      3. Linking OpenCV to an iOS project (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Objective-C++
          2. Converting to cv::Mat
      4. Detecting faces with Cascade Classifier (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Native iOS face detector
          2. Detecting other types of objects
          3. Tuning performance of the detector
      5. Printing a postcard (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. GIMP
          2. Acceleration
      6. Working with images in Gallery (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Device orientation
          2. Disabling buttons
      7. Applying a retro effect (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Taking photos from camera (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Creating a static library (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Cross-platform development
          2. Frameworks
      10. Capturing a video from camera (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Control advanced camera settings (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      12. Applying effects to live video (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      13. Saving video from camera (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
      14. Optimizing performance with ARM NEON (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. NEON
          2. Fixed-point arithmetic
      15. Detecting facial features (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Performance
          2. Tracking between detections
          3. Active Shape Model
      16. Using the Accelerate framework (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      17. Building OpenCV for iOS from sources (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...