-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathFace.h
37 lines (32 loc) · 935 Bytes
/
Face.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <dlib/opencv.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/ml/ml.hpp>
#include <dlib/image_io.h>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_processing/render_face_detections.h>
#include <dlib/image_processing.h>
#include <dlib/gui_widgets.h>
#include "FeatureExtractor.h"
using namespace std;
using namespace dlib;
using namespace cv;
class Face
{
public:
Face();
Face(FeatureExtractor *FE, Mat img, float label);
Face(FeatureExtractor *FE, std::string img, float label);
Face(FeatureExtractor *FE, Mat mat, array2d<rgb_pixel> *img, float label);
~Face();
void showLandmarks();
Mat getLandmarkOverlay();
void calcLandmarks(FeatureExtractor *FE);
Mat mat;
array2d<rgb_pixel> img;
std::vector<dlib::full_object_detection> shape;
std::vector<float> landmarks;
std::vector<dlib::rectangle> faceBoxes;
float label;
};