-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfd.h
57 lines (47 loc) · 1 KB
/
fd.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
47
48
49
50
51
52
53
54
55
56
57
/*
============================================================================
Name : fd.h
Author : LincolnHard
Version :
Copyright : free and open
Description :
============================================================================
*/
#ifndef FD_H_
#define FD_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "utils.h"
//the minimum face size is 24 * FD_START_SCALE pixels
#define FD_START_SCALE 5.0f
#define FD_SCALE_FACTOR 1.2f
#define DETECTION_ROI_MOVING_STEP 1
#define CLASSIFY_START_STAGE 0
#define FD_MIN_NEIGHBORS 1
#define GROUP_EPS 0.4f
#define GROUP_THRESHOLD 1
//below are all constant (do not change them, they are related to the fd buffer)
#define VJ_EMPIRICAL_DETECTION_ROI 24
#define FD_TOTAL_STAGES 25
#define FD_TOTAL_FILTERS 2913
void init_face_detection
(
void
);
void free_face_detection
(
void
);
vector_lincoln* face_detect
(
const unsigned char* src
);
void draw_fd_result
(
unsigned char* src
);
#ifdef __cplusplus
}
#endif
#endif /* FD_H_ */