#include <opencv2/face/facerec.hpp>
◆ empty()
virtual bool cv::face::BasicFaceRecognizer::empty |
( |
| ) |
const |
|
virtual |
◆ 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/3]
virtual void cv::face::BasicFaceRecognizer::read |
( |
const FileNode & |
fn | ) |
|
|
virtual |
◆ read() [2/3]
virtual void cv::face::FaceRecognizer::read |
( |
const FileNode & |
fn | ) |
|
|
virtual |
◆ read() [3/3]
virtual void cv::face::FaceRecognizer::read |
( |
const String & |
filename | ) |
|
|
virtual |
加载 FaceRecognizer 及其模型状态。
从给定的 XML 或 YAML 文件加载持久化的模型和状态。每个 FaceRecognizer 必须覆盖 FaceRecognizer::load(FileStorage& fs) 以启用加载模型状态。FaceRecognizer::load(FileStorage& fs) 依次由 FaceRecognizer::load(const String& filename) 调用,以简化模型保存操作。
从 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/3]
virtual void cv::face::FaceRecognizer::write |
( |
const String & |
filename | ) |
const |
|
virtual |
保存 FaceRecognizer 及其模型状态。
将此模型保存到给定的文件名,可以是 XML 或 YAML。
- 参数
-
每个 FaceRecognizer 都会覆盖 FaceRecognizer::save(FileStorage& fs) 以保存内部模型状态。FaceRecognizer::save(const String& filename) 将模型的状态保存到给定的文件名。
后缀 const 表示预测不会影响内部模型状态,因此该方法可以在不同的线程中安全调用。
从 cv::face::FaceRecognizer 重新实现。
◆ write() [2/3]
virtual void cv::face::BasicFaceRecognizer::write |
( |
FileStorage & |
fs | ) |
const |
|
virtual |
◆ write() [3/3]
virtual void cv::face::FaceRecognizer::write |
( |
FileStorage & |
fs | ) |
const |
|
virtual |
◆ _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 |
该类的文档是从以下文件生成的