#include <opencv2/face/facerec.hpp>
◆ 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.
Implements cv::face::FaceRecognizer.
◆ getEigenValues()
cv::Mat cv::face::BasicFaceRecognizer::getEigenValues |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getEigenValues( | | ) -> | retval |
◆ getEigenVectors()
cv::Mat cv::face::BasicFaceRecognizer::getEigenVectors |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getEigenVectors( | | ) -> | retval |
◆ getLabels()
cv::Mat cv::face::BasicFaceRecognizer::getLabels |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getLabels( | | ) -> | retval |
◆ getMean()
cv::Mat cv::face::BasicFaceRecognizer::getMean |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getMean( | | ) -> | retval |
◆ getNumComponents()
int cv::face::BasicFaceRecognizer::getNumComponents |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getNumComponents( | | ) -> | retval |
◆ getProjections()
std::vector< cv::Mat > cv::face::BasicFaceRecognizer::getProjections |
( |
| ) |
const |
Python: |
---|
| cv.face.BasicFaceRecognizer.getProjections( | | ) -> | retval |
◆ getThreshold()
double cv::face::BasicFaceRecognizer::getThreshold |
( |
| ) |
const |
|
virtual |
Python: |
---|
| cv.face.BasicFaceRecognizer.getThreshold( | | ) -> | retval |
◆ read() [1/2]
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.
Implements cv::face::FaceRecognizer.
◆ read() [2/2]
virtual void cv::face::FaceRecognizer::read |
( |
const String & | filename | ) |
|
|
virtual |
Loads a FaceRecognizer and its model state.
Loads a persisted model and state from a given XML or YAML file . Every FaceRecognizer has to overwrite FaceRecognizer::load(FileStorage& fs) to enable loading the model state. FaceRecognizer::load(FileStorage& fs) in turn gets called by FaceRecognizer::load(const String& filename), to ease saving a model.
Reimplemented from cv::face::FaceRecognizer.
◆ setNumComponents()
void cv::face::BasicFaceRecognizer::setNumComponents |
( |
int | val | ) |
|
Python: |
---|
| cv.face.BasicFaceRecognizer.setNumComponents( | val | ) -> | None |
◆ setThreshold()
void cv::face::BasicFaceRecognizer::setThreshold |
( |
double | val | ) |
|
|
virtual |
Python: |
---|
| cv.face.BasicFaceRecognizer.setThreshold( | val | ) -> | None |
◆ write() [1/2]
virtual void cv::face::FaceRecognizer::write |
( |
const String & | filename | ) |
const |
|
virtual |
Saves a FaceRecognizer and its model state.
Saves this model to a given filename, either as XML or YAML.
- Parameters
-
filename | The filename to store this FaceRecognizer to (either XML/YAML). |
Every FaceRecognizer overwrites FaceRecognizer::save(FileStorage& fs) to save the internal model state. FaceRecognizer::save(const String& filename) saves the state of a model to the given filename.
The suffix const means that prediction does not affect the internal model state, so the method can be safely called from within different threads.
Reimplemented from cv::face::FaceRecognizer.
◆ write() [2/2]
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.
- Parameters
-
Implements cv::face::FaceRecognizer.
◆ _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: