Face Identification Using Haar Cascade Classifier
Face Identification Using Haar Cascade Classifier
classifier
A Haar-Feature is just like a kernel in CNN, except that in a CNN, the values
of the kernel are determined by training, while a Haar-Feature is manually
determined.
Some Haar-Features are listed above. The first two are called "edge features"
since they are used to detect edges. The third is a "line feature," and the fourth
is a "four rectangle feature," both of which are most likely employed to detect
a slanted line.When haar features are applied to image to a girl.
If we consider all possible haar feature properties such as position, scale, and
type, we end up with almost 160,000 features. As a result, for each 24*24 PX,
we must analyse a large number of characteristics.
If we consider all possible haar feature properties such as position, scale, and
type, we end up with almost 160,000 features. As a result, for each 24*24 PX,
we must analyse a large number of characteristics.
AdaBoost:
As previously stated, a detector with 24*24 base resolution can have up to
160,000+ feature values that must be calculated. However, it must be
remembered that only a small subset of these features will be relevant in
identifying a face. AdaBoost is used to eliminate redundant features and
choose only those that are useful.
For example, feature detecting a vertical edge is useful detecting a nose but
irrelevant detecting a lip.
AdaBoost is used to select the best features from among the 160,000+
possible options. Weak classifiers are another name for these features.
Following the discovery of these features, a weighted mixture of all of these
features is used to evaluate and determine whether or not a specific window
has a face. Each of the chosen characteristics (weak classifiers) is considered
acceptable for inclusion if it can at least outperform random guessing (detects
more than half the cases). Each of the weak classifiers is useful for detecting a
different face feature. The output of a weak classifier is binary if it has
identified a part of the face or not.
F( x ) = ∑ ( αᵢ * fᵢ( x ) )
Cascading:
For each 24*24 window, we must calculate 2,500 relevant features among
160,000 features selected by AdaBoost. We need to move our 24*24 window
all across the image, compute 2,500 features for each window, and then take a
linear combination of all outputs to determine whether it exceeds a particular
threshold.Even if an image should contain one or more faces it is obvious that
an excessively large amount of the evaluated sub-windows will still be
negatives (non-faces).
So the algorithm should concentrate on discarding non-faces quickly
and spend more on time on probable face regions.