package cn.com.basic.face.discern.common;
|
|
public class CommonVariables {
|
|
public static class ImageType {
|
public static final int FACE1 = 101; //正面照片1(存放到EmployeeFace/VisitFace表)
|
public static final int FACE2 = 102; //正面照片2(存放到EmployeeFace/VisitFace表)
|
public static final int FACE_L_SIDE = 103; //(主体观察,<=45度)左侧脸照片(存放到EmployeeFace/VisitFace表)
|
public static final int FACE_R_SIDE = 104; //(主体观察,<=45度)右侧脸照片(存放到EmployeeFace/VisitFace表)
|
public static final int FACE_T_SIDE = 105; //(主体观察,<=45度)顶侧脸照片(存放到EmployeeFace/VisitFace表)
|
public static final int FACE_B_SIDE = 106; //(主体观察,<=45度)底侧脸照片(存放到EmployeeFace/VisitFace表)
|
public static final int FACE_UPLOADED = 107; //上传照片(存放到EmployeeFace/VisitFace表)
|
public static final int ICON = 108; // 图标(存放到Image表)
|
public static final int IDENTIFICATION_CARD = 109; //身份证照片(存放到Image表)
|
public static final int BUSINESS_CARD = 110; //名片照片(存放到Image表)
|
public static final int OTHER_CARD = 111; //其他证件(存放到Image表)
|
}
|
|
public static class Type {
|
public static final int NORMAL_VISITOR = 201; //普通访客
|
public static final int BLACK_LIST = 202; //黑名单
|
public static final int TEACHER = 203; //教师
|
public static final int STUDENT = 204; //学生
|
public static final int LEADER = 205; //领导干部
|
}
|
|
public static class StatusID {
|
public static final int NO_REGISTER = 301; //未注册
|
public static final int REGISTERED = 302; //已注册(访客)
|
}
|
|
public static class VisitType {
|
public static final int VISITOR_ENTERED = 303; //来访登记(访客)
|
public static final int VISITOR_EXITED = 304; //签离(访客)
|
}
|
|
public static class AttendanceType {
|
public static final String CHECK_IN = "305"; //签到(员工)
|
public static final String CHECK_OUT = "306"; //签退(员工)
|
}
|
|
public static class EnterOrExit {
|
public static final int ENTER = 401; //进
|
public static final int EXIT = 402; //出
|
}
|
|
public class DictionaryType {
|
public static final String GENDER = "gender";
|
public static final String ID_TYPE = "id_type";
|
public static final String COUNTRY = "country";
|
public static final String VISIT_REASON = "visit_reason";
|
public static final String VISITOR_TYPE = "visitor_type";
|
public static final String ATTENDER_TYPE = "attender_type";
|
public static final String RESOLUTION = "resolution";
|
public static final String PROTOCOL = "protocol";
|
public static final String CAMERA_BRAND = "camera_brand";
|
}
|
|
public static class Page {
|
public static final String PAGE_SIZE = "pageSize";
|
public static final String PAGE_NUM = "pageNum";
|
public static final String DEFAULT_PAGE_SIZE = "7";
|
public static final int hasMorePages = 1;
|
public static final int noMorePage = 2;
|
public static final int reachBottom = 3;
|
}
|
|
public static class Surveillance {
|
public static final int VISIT_REGISTER_ITEM_TYPE = 1;
|
public static final int VISIT_CHECK_IN_ITEM_TYPE = 2;
|
public static final int VISIT_BLANK_ITEM_TYPE = 3;
|
public static final int VISIT_ATTENDANCE_ITEM_TYPE = 4;
|
public static final int VISIT_ATTENDANCE_IN = 5;
|
public static final int VISIT_ATTENDANCE_OUT = 6;
|
public static final int VISIT_ATTENDANCE_BLANK = 7;
|
public static final int OFFLINE_SURVEILLANCE_ITEM_TYPE = 8;
|
|
public static final int REGISTER_CELL_VIEW_INDEX = 0;
|
public static final int CHECK_IN_CELL_VIEW_INDEX = 1;
|
public static final int VISIT_BLANK_CELL_VIEW_INDEX = 2;
|
}
|
|
public static class Camera {
|
public static final String IN = "1";
|
public static final String OUT = "2";
|
}
|
|
public static class RecognizeResult {
|
public static final int RET = 0;
|
public static final int FIRST_ELEMENT_NOT_FOUND = 0;
|
public static final int FIRST_ELEMENT_POSITIVE = 1;//company id parameter.
|
public static final int FIRST_ELEMENT_NEGATIVE = -1;//访客数据库找到了。
|
}
|
|
public static class SelectPhotoType {
|
public static final int SELECT_PHOTO = 1;
|
public static final int UPLOAD_PHOTO = 2;
|
}
|
|
public static class DeviceSharedPreferences {
|
public static final String LAN = "device_lan";
|
public static final String WIFI = "device_wifi";
|
public static final String SCHOOL = "device_school";
|
public static final String CAMERA1 = "device_camera1";
|
public static final String CAMERA2 = "device_camera2";
|
}
|
|
public static class DeviceType {
|
public static final String ANDROID_DEVICE = "android_device";
|
public static final String CAMERA1 = "camera1";
|
public static final String CAMERA2 = "camera2";
|
}
|
|
public static boolean FACE_SERVER = false;
|
public static boolean ID_CARD = false;
|
public static boolean EMULATOR = true;
|
|
public static boolean androidOffline() {
|
return true;
|
}
|
|
public static class Register {
|
public static boolean VISITOR_REGISTER_SELECTED = true;
|
}
|
|
public static class InternetAccess {
|
public static final int INTERNET_NOT_INITIALIZE = -1;
|
public static final int INTERNET_ACCESSIBLE = 1;
|
public static final int INTERNET_NOT_ACCESSIBLE = 0;
|
}
|
|
}
|