forked from hybridgroup/gocv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathface.h
40 lines (32 loc) · 1.22 KB
/
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
38
39
40
#ifndef _OPENCV3_FACE_H_
#define _OPENCV3_FACE_H_
#ifdef __cplusplus
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>
extern "C" {
#endif
#include "../core.h"
#ifdef __cplusplus
typedef cv::Ptr<cv::face::LBPHFaceRecognizer>* LBPHFaceRecognizer;
#else
typedef void* LBPHFaceRecognizer;
#endif
struct PredictResponse {
int label;
double confidence;
};
LBPHFaceRecognizer CreateLBPHFaceRecognizer();
void LBPHFaceRecognizer_Train(LBPHFaceRecognizer fr, Mats images, IntVector labels);
void LBPHFaceRecognizer_Update(LBPHFaceRecognizer fr, Mats images, IntVector labels);
int LBPHFaceRecognizer_Predict(LBPHFaceRecognizer fr, Mat sample);
struct PredictResponse LBPHFaceRecognizer_PredictExtended(LBPHFaceRecognizer fr, Mat sample);
void LBPHFaceRecognizer_SetThreshold(LBPHFaceRecognizer fr, double threshold);
void LBPHFaceRecognizer_SetRadius(LBPHFaceRecognizer fr, int radius);
void LBPHFaceRecognizer_SetNeighbors(LBPHFaceRecognizer fr, int neighbors);
void LBPHFaceRecognizer_SaveFile(LBPHFaceRecognizer fr, const char* filename);
void LBPHFaceRecognizer_LoadFile(LBPHFaceRecognizer fr, const char* filename);
int LBPHFaceRecognizer_GetNeighbors(LBPHFaceRecognizer fr);
#ifdef __cplusplus
}
#endif
#endif //_OPENCV3_FACE_H_