Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenCV Android Programming By Example

You're reading from   OpenCV Android Programming By Example Leverage OpenCV to develop vision-aware and intelligent Android applications.

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781783550593
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Cascade classifiers

In this section, we will discuss the powerful cascade classifier and its components, Haar features, integral images, Adaptive Boosting (Adaboost), and cascading to build an object detector.

In a nutshell, to construct an object detector, you train it using positive samples (let's say, faces of size 24x24) and negative samples (any other images that are not faces). You keep refining the training process to minimize the training error (the total number of faces classified as non-faces and total number of non-faces classified as faces).

Once the training is done and we get a new image, we ask the detector to check if it has a positive sample (that is, face). The steps followed to do so are as follows:

  1. The detector will scan the input image using a scanning window, and every window scanned will get a score.
  2. The detector then will say that this window contains a positive sample if its score is greater than a certain threshold; otherwise, it does not.

Haar-like features

Haar...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image