Book Image

Mastering OpenCV 4 - Third Edition

By : Roy Shilkrot, David Millán Escrivá
Book Image

Mastering OpenCV 4 - Third Edition

By: Roy Shilkrot, David Millán Escrivá

Overview of this book

Mastering OpenCV, now in its third edition, targets computer vision engineers taking their first steps toward mastering OpenCV. Keeping the mathematical formulations to a solid but bare minimum, the book delivers complete projects from ideation to running code, targeting current hot topics in computer vision such as face recognition, landmark detection and pose estimation, and number recognition with deep convolutional networks. You’ll learn from experienced OpenCV experts how to implement computer vision products and projects both in academia and industry in a comfortable package. You’ll get acquainted with API functionality and gain insights into design choices in a complete computer vision project. You’ll also go beyond the basics of computer vision to implement solutions for complex image processing projects. By the end of the book, you will have created various working prototypes with the help of projects in the book and be well versed with the new features of OpenCV4.
Table of Contents (12 chapters)

Technical requirements

The technologies and softwares used in this chapter are the following:

  • OpenCV v3 or v4 Android SDK compiled with the ArUco contrib module: https://github.com/Mainvooid/opencv-android-sdk-with-contrib
  • Android Studio v3.2+
  • Android device running Android OS v6.0+

Build instructions for these components, as well as the code to implement the concepts presented in this chapter, will be provided in the accompanying code repository.

To run the examples, a printed calibration board is required. The board image can be generated programmatically with the ArUco cv::aruco::CharucoBoard::draw function, and can then be printed using a home printer. The board works best if it is glued to a hard surface, such as a cardboard or plastic sheet. After printing the board, precise measurements of the board marker's size should be taken (with a ruler or caliper), to make...