zhangzengfei
2020-03-31 0ce893695d32ab686f9e2309509e80c6feb0d380
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.basic.security.utils;
 
public class Constants {
 
    public static boolean isHuaWeiPad = false;
    public static boolean isMonkeyApk = false;
 
    // rk3399
//    public static int RGB_CAMERA = 0;
//    public static int GRAY_CAMERA = 1;
//    public static int rotation = 90;
//    public static boolean useAef = false;
 
    // 华为平板
//    public static int RGB_CAMERA = isHuaWeiPad ? 1 : 0;
//    public static int GRAY_CAMERA = isHuaWeiPad ? 0 : 1;
 
    //     阿尔法
    public static boolean useAlf = true;
    //    public static int RGB_CAMERA = isHuaWeiPad ? 0 : 1;
//    public static int GRAY_CAMERA = isHuaWeiPad ? 1 : 0;
    public static int RGB_CAMERA = useAlf ? 1 : 0;
    public static int GRAY_CAMERA = useAlf ? 0 : 1;
    public static int rotation = useAlf ? 270 : 270;
 
    public static boolean needIdCardModule = false;
 
    // 使用红外摄像头
    public static boolean USE_GRAY_CAMERA = false;
 
    public static boolean showCapturedImages = false;
 
 
    //5.1.1的那个是旧的    白色pad的是新的
    public static boolean isNewIDCardReader = true;
 
    // 上部播放视频
    public static boolean simulate_camera = false;
 
    //删除标识:0-未删除    1-已删除
    public static int delFlag = 0;
    //存储当前设备的device_id
    public static String deviceId = "liuxin";
 
    public static String erlangLocalNode = "xuxiuxipad@192.168.1.103";
    public static String TABLE = "table";
 
    public static boolean syncToErlang = false;
    public static boolean useCouchbase = false;
    public static boolean printSql = false;
    public static boolean showLog = true;
 
    public static long compareFeatureTime;
    public static float score = 0.0f;
 
    public static int minRecognizeScore = 80;
 
    public static String baseDatabasePath = "/sdcard/security_simplify_database/base_database.db";
    public static String cacheDatabasePath = "/sdcard/security_simplify_database/cache_database.db";
    public static String syncDatabasePath = "/sdcard/security_simplify_database/sync_database.db";
    public static String attachmentPath = "/sdcard/security_simplify_attachment/";
 
 
    public static String SUCCESS = "success";
    public static String TRUE = "true";
    public static String FALSE = "false";
 
    public static int cameraServerPort = 8880;
    public static int snapshotServerPort = 8881;
    public static int relayServerPort = 8882;
    public static int faceTimeServerPort = 8883;
    public static int officeServerPort = 8884;
    public static int yuvServerPort = 8889;
 
    public static long reconnectInMilliSeconds = 3000;
 
//    public static boolean needIdCardModule = false;
 
    public static boolean useBgrArray = true;
    public static boolean useNv21ToBgr = false;
    public static boolean enableTemporaryPerson = false;
    public static boolean useCamera = false;
 
    public static String updateApkUrl = "http://192.168.1.116/";
    public static String updateApkFileName = "Security_simplify_gpu_V10.8.0_v2_2.apk";
    public static boolean useLight = true;
 
    public static String webRtcClientConnected = "webRtcClientConnected";
    public static String webRtcServerStarted = "webRtcServerStarted";
 
    public static boolean autoRestart = true;
//Security_simplify4.apk
    public static String getApkUrl = "http://www.aiotlink.com:8080/getApk?apkName=Security_simplify&currentApkVersion=5";
 
    public static boolean useVisitRecord = false;
    public static boolean uploadVisitToES = false;
 
    public static boolean landscape = false;
}