-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecognition.h
More file actions
24 lines (18 loc) · 794 Bytes
/
recognition.h
File metadata and controls
24 lines (18 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef RECOGNITION_H
#define RECOGNITION_H
#include"opencv2/opencv.hpp"
using namespace cv;
using namespace std;
class recognition
{
public:
recognition();
~recognition();
Ptr<FaceRecognizer> learnCollectedFaces(const vector<Mat> preprocessedFaces, const vector<int> faceLabels,
const string facerecAlgorithm = "FaceRecognizer.Eigenfaces");
// Generate an approximately reconstructed face by back-projecting the eigenvectors & eigenvalues of the given (preprocessed) face.
Mat reconstructFace(const Ptr<FaceRecognizer> model, const Mat preprocessedFace);
// Compare two images by getting the L2 error (square-root of sum of squared error).
double getSimilarity(const Mat A, const Mat B);
};
#endif // RECOGNITION_H