Constant.java 1003 Bytes
package com.viontech.match.config;

import java.text.SimpleDateFormat;

/**
 * 常量
 *
 * @author 谢明辉
 * @version 0.0.1
 */

public class Constant {

    /** 人脸特征维数 */
    public final static int FACE_FEATURE_DIMS = 512;
    /** 人体特征维数 */
    public final static int BODY_FEATURE_DIMS_2048 = 2048;
    public final static int BODY_FEATURE_DIMS_2110 = 2110;

    /** poolId不存在时es返回的message所包含的字段 */
    public final static String STR_POOL_ID_ALREADY_EXISTS = "already_exists";

    /** 类型错误时返回所包含的字段 */
    public final static String CLASS_CAST_EXCEPTION = "class_cast_exception";

    /** 人脸匹配结果的数量 */
    public final static int FACE_MATCH_RESULT_SIZE = 5;
    /** 人体匹配结果的数量 */
    public final static int BODY_MATCH_RESULT_SIZE = 10;

    public final static ThreadLocal<SimpleDateFormat> DATE_FORMAT = ThreadLocal.withInitial(() -> new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
}