Cascade classifier detection and training

One might be wondering how OpenCV could detect faces as this would be a very straightforward task for a couple-of-month old baby, and it looks quite complicated to tell a computer how to accomplish it. We will divide the problem in two parts—object detection, which is applying a classifier and retrieving the object position when the classifier says so, and training a new classifier to learn new objects that should be mostly rigid.

OpenCV Cascade Classifier initially implemented a face-detection technique known as the Viola-Jones detector, first developed by Paul Viola and Michael Jones, which uses the so-called Haar-like features, named after Alfréd Haar wavelets. These features are based on thresholds ...

Get OpenCV 3.0 Computer Vision with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.