libface 0.2
Classes | Public Member Functions | Static Public Member Functions

libface::FaceDetect Class Reference

Inheritance diagram for libface::FaceDetect:
libface::LibFaceDetectCore

List of all members.

Classes

class  FaceDetectPriv

Public Member Functions

 FaceDetect (const std::string &cascadeDir)
 ~FaceDetect ()
std::vector< Face > * detectFaces (const IplImage *inputImage, const CvSize &originalSize=cvSize(0, 0))
std::vector< Face > * detectFaces (const std::string &filename)
int accuracy () const
void setAccuracy (int value)

Static Public Member Functions

static int getRecommendedImageSizeForDetection ()

Constructor & Destructor Documentation

libface::FaceDetect::FaceDetect ( const std::string &  cascadeDir)

Default constructor for the FaceDetect class. Initialises the cascade to a cascade in the specified directory.

Parameters:
cascadeDirA path to the directory where classifier is.
libface::FaceDetect::~FaceDetect ( )

Default destructor. Clears up Haarcascades and frees memory d->storage.


Member Function Documentation

int libface::FaceDetect::accuracy ( ) const [virtual]

Returns the accuracy of face detection on a five-point scale. The default is 4.

Implements libface::LibFaceDetectCore.

std::vector<Face>* libface::FaceDetect::detectFaces ( const std::string &  filename) [virtual]

Inherited method from LibFaceDetectCore. A slightly different interface where you can specify full path to image.

Parameters:
filenameA full path to the image.
Returns:
Returns a vector of Face objects. Each object hold information about 1 face.

Implements libface::LibFaceDetectCore.

std::vector< Face > * libface::FaceDetect::detectFaces ( const IplImage *  inputImage,
const CvSize &  originalSize = cvSize(0,0) 
) [virtual]

Detects faces in an input image

Parameters:
inputImageA pointer to the image in which faces are to be detected
Returns:
The vector of detected faces

Implements libface::LibFaceDetectCore.

int libface::FaceDetect::getRecommendedImageSizeForDetection ( ) [static]

Returns the image size (one dimension) recommended for face detection. If the image is considerably larger, it will be rescaled automatically.

void libface::FaceDetect::setAccuracy ( int  value) [virtual]

Set the accuracy of face detection on a five-point scale.

Implements libface::LibFaceDetectCore.


The documentation for this class was generated from the following files:
 All Classes Files Functions