DFace SDK  2.0.0
LTM
common.h
1 
2 /*****************************************************************************
3 * DFace pro SDK library
4 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
5 * @file common.h
6 * @brief 公共头文件
7 *
8 *
9 * @author kuaikuai.kim(dface.tech)
10 * @email customer@dface.tech
11 * @version 1.3.0
12 * @date 2018-05-02
13 * @license no free
14 *
15 *----------------------------------------------------------------------------
16 * Remark : Description
17 *----------------------------------------------------------------------------
18 * Change History :
19 * <Date> | <Version> | <Author> | <Description>
20 *----------------------------------------------------------------------------
21 * 2018/05/02 | 1.3.0 | kuaikuai kim |
22 *----------------------------------------------------------------------------
23 *
24 *****************************************************************************/
25 
26 #ifndef DFACE_COMMON_H
27 #define DFACE_COMMON_H
28 
29 #define STB_IMAGE_IMPLEMENTATION 1
30 
31 #include <stdio.h>
32 #include "def.h"
33 #include "config.h"
34 #include "types.h"
35 #include "mat.h"
36 #include "mat_pixel.h"
37 
38 namespace dface {
39 
40  using namespace std;
41 
45  typedef enum DFACE_ERROR_CODES {
46  DFACE_SUCCESS = 0,
47  DFACE_ERR_DEVICE_UNAUTH = 1,
48  DFACE_ERR_DEVICE_EXPIRE = 2,
49  DFACE_ERR_FEATURE_UNAUTH = 3,
50  DFACE_ERR_FEATURE_EXPIRE = 4,
51  DFACE_ERR_WRONG_MODEL_FILE = 5,
52  DFACE_ERR_LOAD_LIBRARY = 6,
53  DFACE_ERR_LIMIT_THREAD = 7
54  }DFACE_STATUS;
55 
56 
60  typedef enum BOX_TYPE_CODE {
61  BOX_FACE_DETECT = 0,
62  BOX_FACE_TRACK = 1,
63  BOX_FACE_ADJUST = 2
64  }BOX_TYPE;
65 
66 
70  typedef enum TRACK_MODE_CODE {
71  TRACK_MODE_CONTINUE = 0,
72  TRACK_MODE_REFRESH = 1
73  }TRACK_MODE;
74 
75 
79  typedef enum RGBANTI_MODE_CODE {
80  RGBANTI_MODE_LIGHT = 1,
81  RGBANTI_MODE_DEEP = 2
82  }RGBANTI_MODE;
83 
84 }
85 
86 
87 
88 
89 
90 #endif //DFACE_COMMON_H
Definition: allocator.h:14