forked from linuxdeepin/deepin-face
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinehead.h
53 lines (47 loc) · 1.17 KB
/
definehead.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
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef DEFINEHEAD_H
#define DEFINEHEAD_H
#define SERVERNAME "org.deepin.dde.Face1"
#define SERVERPATH "/org/deepin/dde/Face1"
#define SERVERINTERFACE "org.deepin.dde.Face1"
#define EMPTYCHARATYPE 0
#define FACECHARATYPE 4
// 轻量级人脸识别模型阈值
#define FACETlIGHTHRESHOLD 0.55
enum ActionType {
Enroll,
Verify
};
enum EnrollStatus {
FaceEnrollSuccess,
FaceEnrollNotRealHuman,
FaceEnrollFaceNotCenter,
FaceEnrollFaceTooBig,
FaceEnrollFaceTooSmall,
FaceEnrollNoFace,
FaceEnrollTooManyFace,
FaceEnrollFaceNotClear,
FaceEnrollBrightness,
FaceEnrollFaceCovered,
FaceEnrollCancel,
FaceEnrollError,
FaceEnrollException
};
enum VerifyStatus {
FaceVerifySuccess,
FaceVerifyNotRealHuman,
FaceVerifyFaceNotCenter,
FaceVerifyFaceTooBig,
FaceVerifyFaceTooSmall,
FaceVerifyNoFace,
FaceVerifyTooManyFace,
FaceVerifyFaceNotClear,
FaceVerifyBrightness,
FaceVerifyFaceCovered,
FaceVerifyCancel,
FaceVerifyError,
FaceVerifyException
};
#endif // DEFINEHEAD_H