-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFaceAligner2.hpp
More file actions
23 lines (19 loc) · 776 Bytes
/
FaceAligner2.hpp
File metadata and controls
23 lines (19 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <opencv2/opencv.hpp>
#include <iostream>
class FaceAligner2{
//Atributos de la clase
dlib::shape_predictor sp;
double DesiredLeftEye[2];
double DesiredRightEye[2];
int desiredFaceWidth;
int desiredFaceHeight;
public:
//Constructor
FaceAligner2(double xDesiredLeftEye1, double yDesiredLeftEye1, double xDesiredRightEye1, double yDesiredRightEye1, int desiredFaceWidth1, int desiredFaceHeight1);
FaceAligner2(double xDesiredLeftEye1, double yDesiredLeftEye1, double xDesiredRightEye1, double yDesiredRightEye1, int desiredFaceWidth1, int desiredFaceHeight1, std::string path);
//Destructor
~FaceAligner2();
//Funciones
cv::Mat alignCV(cv::Mat imageMat, dlib::rectangle dets);
int midPoint(int x1, int x2);
};