-
Notifications
You must be signed in to change notification settings - Fork 3
/
KyleGeneric.h
46 lines (34 loc) · 916 Bytes
/
KyleGeneric.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
38
39
40
41
42
43
44
45
46
#ifndef KYLEGENERIC_H
#define KYLEGENERIC_H
#include <opencv2/core/core.hpp>
#include <vector>
#include <iostream>
#include "Common.h"
#include "DetectorGeneric.h"
#include "FaceTracker/include/FaceTracker/Tracker.h"
class KyleGeneric {
public:
KyleGeneric();
~KyleGeneric();
protected:
//Kyle detector parameters
FACETRACKER::Tracker* model;
bool failed_kyle;
// for face drawing
cv::Mat tri;
cv::Mat con;
// model parameters
std::vector<int> wSize;
std::vector<int> wSize1;
std::vector<int> wSize2;
const int nIter;
const double clamp;
const double fTol;
const bool fcheck;
const int fpd;
// eye_rectangles sides will be shifted as a percent of rectangle size
std::vector<double> expandEyesPerc;
std::vector<double> expandFacePerc;
bool processFace (const cv::Size& _imageSize, Face& face);
};
#endif // KYLEGENERIC_H