-
Notifications
You must be signed in to change notification settings - Fork 9
/
face_tracker.h
42 lines (36 loc) · 922 Bytes
/
face_tracker.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
//FACE_TRACKER_H
#ifndef FACE_TRACKER_H
#define FACE_TRACKER_H
#include <net.h>
#include <cpu.h>
#if defined(USE_NCNN_SIMPLEOCV)
#include "simpleocv.h"
#else
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#endif
#include "benchmark.h"
#include "platform.h"
#include "track/data_def.h"
#include "track/tracker.h"
#include "face_feature/face_feature.h"
#include <stdio.h>
#include <vector>
#include <iostream>
#include "definition.h"
#include "detection/face_detector.h"
using namespace std;
class FaceTracker {
public:
FaceTracker();
~FaceTracker();
int Get_Track(cv::Mat& src, vector<FaceInfo> dets, vector<Track>& tracks);
int LoadThirdPartyModels();
int ReleaseThirdPartyModels();
private:
MultiObjectTracker* tracker;
vector<float*> features_saved;
FaceFeatureExtractor* feature_extractor;
};
#endif //FACE_TRACKER_H