Skip to content

In this repository I will try to help people understand how a haars-cascade classifier is made, and try to make the process more autonomous. I'm not an expert in python neither in openCV and accpet corrections.

Notifications You must be signed in to change notification settings

thiagoneves2/haar-cascade-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

HAARS-CASCADE_GENERATOR


Step 1


Put the images of what you want to identify on the positives folder


Step 2


Put images of things that are not what you want to identify on negatives folder


Step 3


Run start.exe


How it works:

Object Detection using Haar feature-based cascade classifiers is an effective object detection method proposed by Paul Viola and Michael Jones in their paper, "Rapid Object Detection using a Boosted Cascade of Simple Features" in 2001. It is a machine learning based approach where a cascade function is trained from a lot of positive and negative images. It is then used to detect objects in other images.

Here we will work with face detection. Initially, the algorithm needs a lot of positive images (images of faces) and negative images (images without faces) to train the classifier. Then we need to extract features from it. For this, Haar features shown in the below image are used. They are just like our convolutional kernel. Each feature is a single value obtained by subtracting sum of pixels under the white rectangle from sum of pixels under the black rectangle.


font: https://docs.opencv.org/master/db/d28/tutorial_cascade_classifier.html

About

In this repository I will try to help people understand how a haars-cascade classifier is made, and try to make the process more autonomous. I'm not an expert in python neither in openCV and accpet corrections.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published