libface 0.2
|
#include <LibFaceCore.h>
Public Member Functions | |
virtual std::map< std::string, std::string > | getConfig ()=0 |
virtual int | loadConfig (const std::map< std::string, std::string > &config)=0 |
virtual int | loadConfig (const std::string &dir)=0 |
virtual int | saveConfig (const std::string &dir)=0 |
virtual int | update (std::vector< Face > &dataVector)=0 |
virtual std::pair< int, float > | recognize (IplImage *test)=0 |
virtual int | count () const =0 |
Abstract class which all classes for face recognition must implement. It serves as an interface such that they can be easily plugged into backend.
virtual int libface::LibFaceRecognitionCore::count | ( | ) | const [pure virtual] |
Abstract method to return the count of faces in the DB
Implemented in libface::Eigenfaces.
virtual std::map<std::string, std::string> libface::LibFaceRecognitionCore::getConfig | ( | ) | [pure virtual] |
Abstract method for retrieving config data from the class. This then can be used by different applications to save it in the desired way, instead of using default save method provided here.
Implemented in libface::Eigenfaces.
virtual int libface::LibFaceRecognitionCore::loadConfig | ( | const std::map< std::string, std::string > & | config | ) | [pure virtual] |
Abstract method for loading config data from a map with keys as string and data as strings. This needs to be of the same format as returned by getConfig() method.
config | A map of configuration names and data associated with it. |
Implemented in libface::Eigenfaces.
virtual std::pair<int, float> libface::LibFaceRecognitionCore::recognize | ( | IplImage * | test | ) | [pure virtual] |
Abstract method for recognising an imput image as a face. Returns the ID of the nearest face
DISTANCE_MODE | The type of distance to use - Euclidean = 0, Mahalanobis = 1. |
test | The test IplImage * image to be recognized |
Implemented in libface::Eigenfaces.
int libface::Eigenfaces::update | ( | std::vector< Face > & | dataVector | ) | [pure virtual] |
Abstract method for updating the system with new array of Face objects.
dataVector | A vector of Face objects. |
Implemented in libface::Eigenfaces.