digiKam
Digikam::OpenCVDNNFaceRecognizer::Private Class Reference

Classes

class  ParallelRecognizer
 
class  ParallelTrainer
 

Public Member Functions

bool insertData (const cv::Mat &position, const int label, const QString &context=QString())
 
int predictDb (const cv::Mat &faceEmbedding) const
 
int predictKDTree (const cv::Mat &faceEmbedding) const
 
int predictKNN (const cv::Mat &faceEmbedding)
 
int predictSVM (const cv::Mat &faceEmbedding)
 
 Private (Classifier method)
 
bool trainKNN ()
 
bool trainSVM ()
 
 ~Private ()
 

Public Attributes

QVector< DNNFaceExtractor * > extractors
 
int kNeighbors
 
cv::Ptr< cv::ml::KNearest > knn
 
Classifier method
 
bool newDataAdded
 
cv::Ptr< cv::ml::SVM > svm
 
float threshold
 
KDTreetree
 

Constructor & Destructor Documentation

◆ Private()

Digikam::OpenCVDNNFaceRecognizer::Private::Private ( Classifier  method)
inline

◆ ~Private()

Digikam::OpenCVDNNFaceRecognizer::Private::~Private ( )
inline

Member Function Documentation

◆ insertData()

bool Digikam::OpenCVDNNFaceRecognizer::Private::insertData ( const cv::Mat &  position,
const int  label,
const QString &  context = QString() 
)

◆ predictDb()

int Digikam::OpenCVDNNFaceRecognizer::Private::predictDb ( const cv::Mat &  faceEmbedding) const

◆ predictKDTree()

int Digikam::OpenCVDNNFaceRecognizer::Private::predictKDTree ( const cv::Mat &  faceEmbedding) const

◆ predictKNN()

int Digikam::OpenCVDNNFaceRecognizer::Private::predictKNN ( const cv::Mat &  faceEmbedding)

◆ predictSVM()

int Digikam::OpenCVDNNFaceRecognizer::Private::predictSVM ( const cv::Mat &  faceEmbedding)

◆ trainKNN()

bool Digikam::OpenCVDNNFaceRecognizer::Private::trainKNN ( )

◆ trainSVM()

bool Digikam::OpenCVDNNFaceRecognizer::Private::trainSVM ( )

References svm.

Member Data Documentation

◆ extractors

◆ kNeighbors

int Digikam::OpenCVDNNFaceRecognizer::Private::kNeighbors

◆ knn

cv::Ptr<cv::ml::KNearest> Digikam::OpenCVDNNFaceRecognizer::Private::knn

◆ method

◆ newDataAdded

bool Digikam::OpenCVDNNFaceRecognizer::Private::newDataAdded

◆ svm

cv::Ptr<cv::ml::SVM> Digikam::OpenCVDNNFaceRecognizer::Private::svm

Referenced by trainSVM().

◆ threshold

float Digikam::OpenCVDNNFaceRecognizer::Private::threshold

◆ tree

KDTree* Digikam::OpenCVDNNFaceRecognizer::Private::tree

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