/opencv_for_ios_book_samples

"OpenCV for iOS" book samples

Primary LanguageObjective-COtherNOASSERTION

OpenCV for iOS (samples for the book)

Build & run sample projects

Almost every chapter of the book describes a separate project. There are 15 Xcode projects for 17 chapters in the book. Chapter 16 extends the project of Chapter 14, and for Chapter 17 you need only OpenCV source code.

  • First of all you will need a computer with Mac OSX and Xcode. An iOS device is also helpful, since not all samples can be executed on Simulator.
  • Install OpenCV v2.4.6 or newer. You can go to http://opencv.org, click on Downloads, and download the latest OpenCV framework for iOS. Copy it to the folder with this code.
  • Now you can import sample projects to Xcode and run them on Simulator or a real device.

For detailed instructions and explanations please refer to the book.

Chapters

  1. Getting Started with iOS helps you to setup your development environment and run your first "Hello World" iOS application.
  2. Displaying Image from Resources introduces you to basic GUI concepts on iOS, and covers loading of an image from resources and displaying it on the display.
  3. Linking OpenCV to iOS Project explains how to link OpenCV library and call any function from it.
  4. Detecting Faces with Cascade Classifier shows how to detect faces using OpenCV.
  5. Printing Postcard demonstrates how a simple photo effect can be implemented.
  6. Working with Images in Gallery explains how to load and save images from/to Gallery.
  7. Applying Retro Effect demonstrates another interesting photo effect, which makes photos look old.
  8. Taking Photos From Camera shows how to capture static images with camera.
  9. Creating Static Library explains how to create a Static Library project in Xcode.
  10. Capturing Video from Camera shows how to capture video stream from camera.
  11. Control Advanced Camera Settings explains how to control advanced camera settings, like exposure, focus and white balance.
  12. Applying Effects to Live Video shows how to process captured video frames on the fly.
  13. Saving Video from Camera explains how to save video stream to the device with hardware encoding.
  14. Optimizing Performance with ARM NEON explains how to use SIMD instructions to vectorize you code and improve performance.
  15. Detecting Facial Features presents a simple facial feature detection demo.
  16. Using Accelerate Framework explains how to link the framework, and how to use it for performance optimization.
  17. Building OpenCV for iOS from sources explains where to get and how to build the latest OpenCV sources.

Screenshots

Chapter 5. "Printing Postcard"

Chapter 6. "Working with Images in Gallery"

Chapter 7. "Applying Retro Effect"

Chapter 12. "Applying Effects to Live Video"

Chapter 15. "Detecting Facial Features"