libface 0.2
|
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 () |
libface::FaceDetect::FaceDetect | ( | const std::string & | cascadeDir | ) |
Default constructor for the FaceDetect class. Initialises the cascade to a cascade in the specified directory.
cascadeDir | A path to the directory where classifier is. |
libface::FaceDetect::~FaceDetect | ( | ) |
Default destructor. Clears up Haarcascades and frees memory d->storage.
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.
filename | A full path to the image. |
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
inputImage | A pointer to the image in which faces are to be detected |
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.