cv::face::BasicFaceRecognizer Class Reference
面部分析

#include <opencv2/face/facerec.hpp>

Inheritance diagram for cv::face::BasicFaceRecognizer:
cv::face::FaceRecognizer cv::Algorithm cv::face::EigenFaceRecognizer cv::face::FisherFaceRecognizer

Public Member Functions

virtual bool empty () const CV_OVERRIDE
cv::Mat getEigenValues () const
cv::Mat getEigenVectors () const
cv::Mat getLabels () const
cv::Mat getMean () const
int getNumComponents () const
std::vector< cv::Mat > getProjections () const
double getThreshold () const CV_OVERRIDE
virtual void read (const FileNode &fn) CV_OVERRIDE
void setNumComponents (int val)
void setThreshold (double val) CV_OVERRIDE
virtual void write ( FileStorage &fs) const CV_OVERRIDE
- Public Member Functions inherited from cv::face::FaceRecognizer
virtual 字符串 getLabelInfo (int label) const
Gets string information by label. 更多...
virtual std::vector< int > getLabelsByString (const 字符串 &str) const
Gets vector of labels by string. 更多...
int predict ( InputArray src) const
void predict ( InputArray src, int &label, double &confidence) const
Predicts a label and associated confidence (e.g. distance) for a given input image. 更多...
virtual void predict ( InputArray src, Ptr < PredictCollector > collector) const =0
  • if implemented - send all result of prediction to collector that can be used for somehow custom result handling
更多...
virtual void read (const 字符串 &filename)
Loads a FaceRecognizer and its model state. 更多...
virtual void setLabelInfo (int label, const 字符串 &strInfo)
Sets string info for the specified model's label. 更多...
virtual void train ( InputArrayOfArrays src, InputArray labels)=0
Trains a FaceRecognizer with given data and associated labels. 更多...
virtual void update ( InputArrayOfArrays src, InputArray labels)
Updates a FaceRecognizer with given data and associated labels. 更多...
virtual void write (const 字符串 &filename) const
Saves a FaceRecognizer and its model state. 更多...
- Public Member Functions inherited from cv::Algorithm
Algorithm ()
virtual ~Algorithm ()
virtual void clear ()
Clears the algorithm state. 更多...
virtual 字符串 getDefaultName () const
virtual void save (const 字符串 &filename) const
void write (const Ptr < FileStorage > &fs, const 字符串 &name= 字符串 ()) const
simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 更多...

Protected Attributes

Mat _eigenvalues
Mat _eigenvectors
Mat _labels
Mat _mean
int _num_components
std::vector< Mat > _projections
double _threshold
- Protected Attributes inherited from cv::face::FaceRecognizer
std::map< int, 字符串 > _labelsInfo

额外继承成员

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr < _Tp > load (const 字符串 &filename, const 字符串 &objname= 字符串 ())
Loads algorithm from the file. 更多...
template<typename _Tp >
static Ptr < _Tp > loadFromString (const 字符串 &strModel, const 字符串 &objname= 字符串 ())
Loads algorithm from a String. 更多...
template<typename _Tp >
static Ptr < _Tp > read (const FileNode &fn)
Reads algorithm from the file node. 更多...
- Protected Member Functions inherited from cv::Algorithm
void writeFormat ( FileStorage &fs) const

成员函数文档编制

empty()

virtual bool cv::face::BasicFaceRecognizer::empty ( ) const
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

实现 cv::face::FaceRecognizer .

getEigenValues()

cv::Mat cv::face::BasicFaceRecognizer::getEigenValues ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getEigenValues( )

getEigenVectors()

cv::Mat cv::face::BasicFaceRecognizer::getEigenVectors ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getEigenVectors( )

getLabels()

cv::Mat cv::face::BasicFaceRecognizer::getLabels ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getLabels( )

getMean()

cv::Mat cv::face::BasicFaceRecognizer::getMean ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getMean( )

getNumComponents()

int cv::face::BasicFaceRecognizer::getNumComponents ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getNumComponents( )
另请参阅
setNumComponents

getProjections()

std::vector< cv::Mat > cv::face::BasicFaceRecognizer::getProjections ( ) const
Python:
retval = cv.face_BasicFaceRecognizer.getProjections( )

getThreshold()

double cv::face::BasicFaceRecognizer::getThreshold ( ) const
virtual
Python:
retval = cv.face_BasicFaceRecognizer.getThreshold( )

read()

virtual void cv::face::BasicFaceRecognizer::read ( const FileNode & fn )
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

实现 cv::face::FaceRecognizer .

setNumComponents()

void cv::face::BasicFaceRecognizer::setNumComponents ( int val )
Python:
None = cv.face_BasicFaceRecognizer.setNumComponents( val )

另请参阅
getNumComponents

setThreshold()

void cv::face::BasicFaceRecognizer::setThreshold ( double val )
virtual
Python:
None = cv.face_BasicFaceRecognizer.setThreshold( val )

write()

virtual void cv::face::BasicFaceRecognizer::write ( FileStorage & fs ) const
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Saves this model to a given FileStorage .

参数
fs FileStorage to store this FaceRecognizer to.

实现 cv::face::FaceRecognizer .

Member Data Documentation

_eigenvalues

Mat cv::face::BasicFaceRecognizer::_eigenvalues
protected

_eigenvectors

Mat cv::face::BasicFaceRecognizer::_eigenvectors
protected

_labels

Mat cv::face::BasicFaceRecognizer::_labels
protected

_mean

Mat cv::face::BasicFaceRecognizer::_mean
protected

_num_components

int cv::face::BasicFaceRecognizer::_num_components
protected

_projections

std::vector< Mat > cv::face::BasicFaceRecognizer::_projections
protected

_threshold

double cv::face::BasicFaceRecognizer::_threshold
protected

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