25 #ifndef OPENCV_DNN_FACERECOGNIZER_H
26 #define OPENCV_DNN_FACERECOGNIZER_H
34 #include "digikam_opencv.h"
64 static cv::Mat prepareForRecognition(QImage& inputImage);
69 static cv::Mat prepareForRecognition(
const cv::Mat& cvinputImage);
74 void train(
const QList<QImage*>& images,
const int label,
const QString& context);
82 int recognize(QImage* inputImage);
94 void clearTraining(
const QList<int>& idsToClear,
const QString& trainingContext);
99 void setNbNeighBors(
int k);
104 void setThreshold(
float threshold);
109 bool registerTrainingData(
const cv::Mat& preprocessedImage,
int label);
114 int verifyTestData(
const cv::Mat& preprocessedImage);
Definition: opencvdnnfacerecognizer.h:42
Classifier
Definition: opencvdnnfacerecognizer.h:46
@ OpenCV_KNN
Definition: opencvdnnfacerecognizer.h:48
@ DB
Definition: opencvdnnfacerecognizer.h:50
@ Tree
Definition: opencvdnnfacerecognizer.h:49
Definition: datefolderview.cpp:43