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)

Face detection using a Haar cascade classifier in your browser

To finish this chapter on OpenCV.js, we are going to learn how to create a face detector using Haar features in a cascade classifier algorithm. To get detailed information about face detector using Haar and Cascade classifier you can read it in Chapter 3, Face Landmark and Pose with the Face Module, in the Facial Landmark Detection in OpenCV section and Chapter 5, Face Detection and Recognition with the DNN Module, in the Face detection section that describe in detail how this two methods works.

Like the previous chapter, we are going to work with video input and canvas output, then we are going to reuse the same HTML structure to start our development:

<div class="row">
<div class="col">
<div id="status" class="alert alert-primary" role="alert&quot...