| | |
| | | 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 = 0; |
| | | public static boolean useAlf = 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 = true; |
| | | // 使用红外摄像头 |
| | | public static boolean USE_GRAY_CAMERA = 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 = "indoor1"; |
| | | 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_excel_database/base_database.db"; |
| | | public static String cacheDatabasePath = "/sdcard/security_excel_database/cache_database.db"; |
| | | public static String syncDatabasePath = "/sdcard/security_excel_database/sync_database.db"; |
| | | public static String attachmentPath = "/sdcard/security_excel_attachment/"; |
| | | public static String baseDatabasePath = "/sdcard/security_yuyin_indoor/base_database.db"; |
| | | public static String cacheDatabasePath = "/sdcard/security_yuyin_indoor/cache_database.db"; |
| | | public static String syncDatabasePath = "/sdcard/security_yuyin_indoor/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 getApkUrl = "http://www.aiotlink.com:8080/getApk?apkName=Security_yuyin¤tApkVersion=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 = true; |
| | | public static boolean isOutdoor = !isIndoor; |
| | | public static boolean isUseSerf = false; |
| | | public static boolean autoRestart = false; |
| | | public static boolean landscape = true; |
| | | public static boolean isTps650 = true; |
| | | public static boolean indoorOutdoorInOne = true; |
| | | public static boolean deletePersonPhysical = true; |
| | | public static boolean deletePersonPhysical = false; |
| | | public static boolean useLight = false; |
| | | public static boolean isWhiteDevice = false; |
| | | public static String nodeName = "node_indoor"; |
| | | public static boolean isUseSocketRpc = false; |
| | | |
| | | public static String deviceId = "PAD97a1cfb8c50c"; |
| | | public static String nodeId = "PAD97a1cfb8c50c"; |
| | | public static boolean USE_GRAY_CAMERA = false; |
| | | public static String other_node_ip = "192.168.5.22"; |
| | | public static boolean isTps650 = true; |
| | | public static boolean isAraBM = false; |
| | | |
| | | static { |
| | | if (USE_GRAY_CAMERA) { |
| | | deviceId = "PAD17a1cfb8c50c"; |
| | | nodeId = "PAD17a1cfb8c50c"; |
| | | isUseSerf = false; |
| | | } else { |
| | | other_node_ip = "192.168.222.105"; |
| | | } |
| | | } |
| | | |
| | | public static String deviceId() { |
| | | return deviceId; |
| | | } |
| | | |
| | | public static String nodeId() { |
| | | return nodeId; |
| | | } |
| | | |
| | | public static String other_node_ip() { |
| | | return other_node_ip; |
| | | } |
| | | } |