libface 0.2
Public Member Functions

libface::LibFaceRecognitionCore Class Reference

#include <LibFaceCore.h>

Inheritance diagram for libface::LibFaceRecognitionCore:
libface::Eigenfaces

List of all members.

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

Detailed Description

Abstract class which all classes for face recognition must implement. It serves as an interface such that they can be easily plugged into backend.


Member Function Documentation

virtual int libface::LibFaceRecognitionCore::count ( ) const [pure virtual]

Abstract method to return the count of faces in the DB

Returns:
The number of faces the DB has been trained with

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.

Returns:
Returns a map of configuration names and their data.

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.

Parameters:
configA 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

Parameters:
DISTANCE_MODEThe type of distance to use - Euclidean = 0, Mahalanobis = 1.
testThe test IplImage * image to be recognized
Returns:
The ID of the closest face

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.

Parameters:
dataVectorA vector of Face objects.
Returns:
0 id the update was successful, or positive int above 0 otherwise.

Implemented in libface::Eigenfaces.


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