a
554325746@qq.com
2020-01-10 ce0902f1721b9de6c0a2e8b16cdb6be2c6bca2b3
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.basic.security.utils;
 
public class Constants {
    public static boolean isHuaWeiPad = false;
    public static boolean isMonkeyApk = false;
    // rk3399
    public static boolean useAlf = false;
    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 useLight = false;
    public static boolean USE_GRAY_CAMERA = false;
    // 华为平板
//    public static int RGB_CAMERA = isHuaWeiPad ? 1 : 0;
//    public static int GRAY_CAMERA = isHuaWeiPad ? 0 : 1;
//     阿尔法
//    public static boolean useAef = true;
//    public static int RGB_CAMERA = isHuaWeiPad ? 0 : 1;
//    public static int GRAY_CAMERA = isHuaWeiPad ? 1 : 0;
//    public static int rotation = 270;
    public static boolean needIdCardModule = false;
    public static boolean showCapturedImages = false;
    //5.1.1的那个是旧的    白色pad的是新的
    public static boolean isNewIDCardReader = false;
    //删除标识:0-未删除    1-已删除
    public static int delFlag = 0;
    //存储当前设备的device_id
    public static String deviceId = "PAD64c9a722d7a6";
    public static String erlangLocalNode = "xuxiuxipad@192.168.1.119";
    public static boolean syncToErlang = false;
    public static boolean printSql = false;
    public static boolean showLog = true;
    public static boolean showLog1 = false;
    public static long compareFeatureTime;
    public static float score = 0.0f;
    public static int minRecognizeScore = 80;
    public static String baseDatabasePath = "/sdcard/security_yuyin_outdoor_database/base_database.db";
    public static String cacheDatabasePath = "/sdcard/security_yuyin_outdoor_database/cache_database.db";
    public static String syncDatabasePath = "/sdcard/security_yuyin_outdoor_database/sync_database.db";
    public static String attachmentPath = "/sdcard/security_yuyin_attachment/";
    public static String SUCCESS = "success";
    public static String TRUE = "true";
    public static String FALSE = "false";
    public static String TABLE = "table";
    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 sqliteServerPort = 8885;
    public static int guestServerPort = 8886;
    public static int indoorServerPort = 8889;
    public static int personServerPort = 8890;
    public static int cameraImagePathDownloadServerPort = 8887;
    public static long reconnectInMilliSeconds = 3000;
    //    public static boolean needIdCardModule = false;
    public static boolean useBgrArray = true;
    public static boolean useNv21ToBgr = false;
    public static boolean stopCameraAndVideo = false;
    public static boolean enableTemporaryPerson = true;
    public static boolean useErlangVersion2 = true;
    public static boolean guestSignUp = false;
    public static String localIp = "127.0.0.1";
    public static String LENGTH = "length";
    public static boolean useGuest = true;
    public static boolean sqliteSync = false;
    public static String apkName = "Security_yuyin_outdoor_white";
    public static String getApkUrl = "http://www.aiotlink.com:8080/getApk?apkName="+apkName+"&currentApkVersion=1";
    public static String webRtcServerStarted = "webRtcServerStarted";
    public static String webRtcClientConnected = "webRtcClientConnected";
    public static boolean useOrg = true;
    public static boolean useImport = true;
    public static boolean isYuYin = true;
    public static String isDeleteTrue = "isDeleteTrue";
    public static String isDeleteFalse = "isDeleteFalse";
    public static String enableFalse = "enableFalse";
    public static String enableTrue = "enableTrue";
    public static boolean isIndoor = false;
    public static boolean isOutdoor = !isIndoor;
    public static boolean isUseSerf = true;
    public static boolean autoRestart = false;
    public static boolean landscape = false;
    public static boolean indoorOutdoorInOne = false;
    public static boolean deletePersonPhysical = true;
    public static boolean isWhiteDevice = false;
    public static String nodeId = "PAD64c9a722d7a6";
    public static boolean useUsbAttachDetachReceiver = false;
    public static String nodeName = "node_outdoor";
    public static String other_node_ip = "192.168.5.22";
    public static boolean isUseSocketRpc = false;
    public static boolean isTps650 = false;
    public static boolean isAraBM = false;
    public static boolean productionMode = true;
 
    static {
        if (USE_GRAY_CAMERA) {
            deviceId = "PAD14c9a722d7a6";
            nodeId = "PAD14c9a722d7a6";
//            isUseSerf = false;
        } else {
            other_node_ip = "192.168.222.103";
        }
    }
    public static String deviceId() {
        return deviceId;
    }
    public static String nodeId() {
        return nodeId;
    }
    public static String other_node_ip() {
        return other_node_ip;
    }
}