mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-15 22:57:26 +00:00
1、人脸模块:新增小视科技(MiniVision)活体检测模型
2、人脸模块:新增阿里通义工作室活体检测模型 3、人脸模块:新增2个表情识别模型 4、人脸模块:新增InsightFace、ElasticFace人脸识别模型 5、人脸模块:新增Seetaface6质量评估模型 6、目标检测模块:开放更多自定义模型参数 7、人脸模块:支持base64图片 8、实现接口 AutoCloseable,支持资源的自动释放 9、OCR模块:解决加方向矫正后无法连续识别bug 10、人脸模块:解决人脸更新后缓存问题 11、优化部分功能
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package cn.smartjavaai.face.constant;
|
||||
|
||||
/**
|
||||
* FaceNet人脸模型常量
|
||||
* @author dwj
|
||||
*/
|
||||
public class FaceNetConstant {
|
||||
|
||||
/**
|
||||
* 模型下载地址
|
||||
*/
|
||||
public static final String MODEL_URL = "https://resources.djl.ai/test-models/pytorch/face_feature.zip";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.smartjavaai.face.constant;
|
||||
|
||||
/**
|
||||
* MiniVision模型常量
|
||||
* @author dwj
|
||||
* @date 2025/7/3
|
||||
*/
|
||||
public class MiniVisionConstant {
|
||||
|
||||
/**
|
||||
* 真人阈值
|
||||
*/
|
||||
public static final Float REALITY_THRESHOLD = 0.5f;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package cn.smartjavaai.face.constant;
|
||||
|
||||
/**
|
||||
* RetinaFace人脸检测模型常量
|
||||
* @author dwj
|
||||
* @date 2025/7/2
|
||||
*/
|
||||
public class RetinaFaceConstant {
|
||||
|
||||
/**
|
||||
* 特征图层的基础缩放比例
|
||||
*/
|
||||
public static final int[][] scales = {{16, 32}, {64, 128}, {256, 512}};
|
||||
/**
|
||||
* 特征图相对于原图的采样步长
|
||||
*/
|
||||
public static final int[] steps = {8, 16, 32};
|
||||
/**
|
||||
* 缩放系数
|
||||
*/
|
||||
public static final double[] variance = {0.1f, 0.2f};
|
||||
|
||||
/**
|
||||
* 模型下载地址
|
||||
*/
|
||||
public static final String MODEL_URL = "https://resources.djl.ai/test-models/pytorch/retinaface.zip";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.smartjavaai.face.constant;
|
||||
|
||||
/**
|
||||
* UltraLightFastGenericFace人脸检测模型常量
|
||||
* @author dwj
|
||||
*/
|
||||
public class UltraLightFastGenericFaceConstant {
|
||||
|
||||
/**
|
||||
* 特征图层的基础缩放比例
|
||||
*/
|
||||
public static final int[][] scales = {{10, 16, 24}, {32, 48}, {64, 96}, {128, 192, 256}};
|
||||
/**
|
||||
* 特征图相对于原图的采样步长
|
||||
*/
|
||||
public static final int[] steps = {8, 16, 32, 64};
|
||||
/**
|
||||
* 缩放系数
|
||||
*/
|
||||
public static final double[] variance = {0.1f, 0.2f};
|
||||
|
||||
/**
|
||||
* 模型下载地址
|
||||
*/
|
||||
public static final String MODEL_URL = "https://resources.djl.ai/test-models/pytorch/ultranet.zip";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user