OpenCV  2.4.13.7
Open Source Computer Vision
cv::FaceRecognizer Class Referenceabstract

#include <contrib.hpp>

Inheritance diagram for cv::FaceRecognizer:
cv::Algorithm

Public Member Functions

virtual ~FaceRecognizer ()
 virtual destructor More...
 
virtual void train (InputArrayOfArrays src, InputArray labels)=0
 
void update (InputArrayOfArrays src, InputArray labels)
 
virtual int predict (InputArray src) const =0
 
virtual void predict (InputArray src, CV_OUT int &label, CV_OUT double &confidence) const =0
 
virtual void save (const string &filename) const
 
virtual void load (const string &filename)
 
virtual void save (FileStorage &fs) const =0
 
virtual void load (const FileStorage &fs)=0
 
void setLabelsInfo (const std::map< int, string > &labelsInfo)
 
string getLabelInfo (const int &label)
 
vector< intgetLabelsByString (const string &str)
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
string name () const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const string &name) const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const char *name) const
 
int getInt (const string &name) const
 
double getDouble (const string &name) const
 
bool getBool (const string &name) const
 
string getString (const string &name) const
 
Mat getMat (const string &name) const
 
vector< MatgetMatVector (const string &name) const
 
Ptr< AlgorithmgetAlgorithm (const string &name) const
 
void set (const string &name, int value)
 
void set (const string &name, double value)
 
void set (const string &name, bool value)
 
void set (const string &name, const string &value)
 
void set (const string &name, const Mat &value)
 
void set (const string &name, const vector< Mat > &value)
 
void set (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const string &name, const Ptr< _Tp > &value)
 
void setInt (const string &name, int value)
 
void setDouble (const string &name, double value)
 
void setBool (const string &name, bool value)
 
void setString (const string &name, const string &value)
 
void setMat (const string &name, const Mat &value)
 
void setMatVector (const string &name, const vector< Mat > &value)
 
void setAlgorithm (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const string &name, const Ptr< _Tp > &value)
 
void set (const char *name, int value)
 
void set (const char *name, double value)
 
void set (const char *name, bool value)
 
void set (const char *name, const string &value)
 
void set (const char *name, const Mat &value)
 
void set (const char *name, const vector< Mat > &value)
 
void set (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const char *name, const Ptr< _Tp > &value)
 
void setInt (const char *name, int value)
 
void setDouble (const char *name, double value)
 
void setBool (const char *name, bool value)
 
void setString (const char *name, const string &value)
 
void setMat (const char *name, const Mat &value)
 
void setMatVector (const char *name, const vector< Mat > &value)
 
void setAlgorithm (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const char *name, const Ptr< _Tp > &value)
 
string paramHelp (const string &name) const
 
int paramType (const char *name) const
 
int paramType (const string &name) const
 
void getParams (CV_OUT vector< string > &names) const
 
virtual void write (FileStorage &fs) const
 
virtual void read (const FileNode &fn)
 
virtual AlgorithmInfoinfo () const
 

Additional Inherited Members

- Public Types inherited from cv::Algorithm
typedef Algorithm *(* Constructor) (void)
 
typedef int(Algorithm::* Getter) () const
 
typedef void(Algorithm::* Setter) (int)
 
- Static Public Member Functions inherited from cv::Algorithm
static void getList (CV_OUT vector< string > &algorithms)
 
static Ptr< Algorithm_create (const string &name)
 
template<typename _Tp >
static Ptr< _Tp > create (const string &name)
 

Constructor & Destructor Documentation

§ ~FaceRecognizer()

virtual cv::FaceRecognizer::~FaceRecognizer ( )
inlinevirtual

virtual destructor

Member Function Documentation

§ getLabelInfo()

string cv::FaceRecognizer::getLabelInfo ( const int label)

§ getLabelsByString()

vector<int> cv::FaceRecognizer::getLabelsByString ( const string &  str)

§ load() [1/2]

virtual void cv::FaceRecognizer::load ( const string &  filename)
virtual

§ load() [2/2]

virtual void cv::FaceRecognizer::load ( const FileStorage fs)
pure virtual

§ predict() [1/2]

virtual int cv::FaceRecognizer::predict ( InputArray  src) const
pure virtual

§ predict() [2/2]

virtual void cv::FaceRecognizer::predict ( InputArray  src,
CV_OUT int label,
CV_OUT double &  confidence 
) const
pure virtual

§ save() [1/2]

virtual void cv::FaceRecognizer::save ( const string &  filename) const
virtual

§ save() [2/2]

virtual void cv::FaceRecognizer::save ( FileStorage fs) const
pure virtual

§ setLabelsInfo()

void cv::FaceRecognizer::setLabelsInfo ( const std::map< int, string > &  labelsInfo)

§ train()

virtual void cv::FaceRecognizer::train ( InputArrayOfArrays  src,
InputArray  labels 
)
pure virtual

§ update()

void cv::FaceRecognizer::update ( InputArrayOfArrays  src,
InputArray  labels 
)

The documentation for this class was generated from the following file: