FacesClassifier Class Reference
Faces classifier. More...
#include <classifiers/faces.h>

Public Member Functions | |
| FacesClassifier (const char *haarcascade_file, unsigned int pixel_width, unsigned int pixel_height, IplImage *image=NULL, float haar_scale_factor=1.1, int min_neighbours=3, int flags=0) | |
| Constructor. | |
| virtual | ~FacesClassifier () |
| Destructor. | |
| virtual std::list< ROI > * | classify () |
| Classify image. | |
Detailed Description
Faces classifier.This class provides a classifier that uses OpenCV to detect images in the given image. The faces are reported back as regions of interest. Each ROI is considered to contain a face.
This code is based on the OpenCV example provided and works with the Haar cascade files that come with OpenCV. The code is based on investigations by Stefan Schiffer.
Definition at line 33 of file faces.h.
Constructor & Destructor Documentation
| FacesClassifier::FacesClassifier | ( | const char * | haarcascade_file, | |
| unsigned int | pixel_width, | |||
| unsigned int | pixel_height, | |||
| IplImage * | image = NULL, |
|||
| float | haar_scale_factor = 1.1, |
|||
| int | min_neighbours = 3, |
|||
| int | flags = 0 | |||
| ) |
Constructor.
- Parameters:
-
haarcascade_file Haar cascade file to use pixel_width width of images that will be processed pixel_height height of images that will be processed image Optional image that is used by the classifier. If this image is NULL an internal IplImage is created and the buffer converted. If you need the buffer anyway pass a pointer to this image to do the conversion only once. In that case the classifier assume that the image has already been converted! haar_scale_factor Haar scale factor min_neighbours minimum neighbours flags flags, can only be CV_HAAR_DO_CANNY_PRUNING at the moment.
| FacesClassifier::~FacesClassifier | ( | ) | [virtual] |
Member Function Documentation
| std::list< ROI > * FacesClassifier::classify | ( | ) | [virtual] |
Classify image.
The current buffer is processed and scanned for the features the classifier has been written and initialized for. It returns a list of disjunct regions of interest.
- Returns:
- disjunct list of extracted regions of interest
Implements Classifier.
Definition at line 101 of file faces.cpp.
References Classifier::_height, Classifier::_src, Classifier::_width, IplImageAdapter::convert_image_bgr(), and ROI::num_hint_points.
The documentation for this class was generated from the following files:

