From the course: OpenCV for Python Developers

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Haar cascading

Haar cascading

- [Instructor] If you've ever used a camera that identifies faces, then you've almost certainly used Haar Cascades. Before we jump into creating stable face detection, let's take a moment to understand Haar Cascade classifiers, a form of feature-based machine learning. This course won't go deep into machine learning but you'll find it's actually quite easy to use existing pre-trained ML models. Let's first cover the basics. Hard cascades work in our face detection use case by starting with input images that are pre-labeled on where faces exist. This is what is known as supervised machine learning because you tell the machine what the correct answers are upfront so it knows how well it is learning. During the training process, the classifier learns by comparing various black and white patterns against regions of a training image which ultimately help it correlate these patterns or features to the structure of a face. For…

Contents