1、人脸模块:人脸查询支持 向量数据库Milvus 和 SQLite

2、人脸模块:FaceNet人脸模型也支持人脸注册,查询等功能
3、人脸模块:Seetaface6 自动下载人脸库
4、人脸模块:Seetaface6解决依赖库重复下载问题
5、人脸模块:支持手动加载人脸库
6、人脸模块:人脸识别相关功能支持更多参数
This commit is contained in:
dengwenjie
2025-06-09 12:12:10 +08:00
parent ad6706f559
commit bca9462331
67 changed files with 4170 additions and 1438 deletions

View File

@@ -9,7 +9,7 @@ public enum FaceModelEnum {
RETINA_FACE("RetinaFaceModel"),
ULTRA_LIGHT_FAST_GENERIC_FACE("UltraLightFastGenericFaceModel"),
FACENET_FEATURE_EXTRACTION("FeatureExtractionModel"),
FACENET_MODEL("FaceNetModel"),
SEETA_FACE6_MODEL("SeetaFace6Model");
private final String modelClassName;

View File

@@ -0,0 +1,13 @@
package cn.smartjavaai.face.enums;
/**
* ID生成策略
* @author dwj
* @date 2025/5/29
*/
public enum IdStrategy {
AUTO, // 自动生成
CUSTOM // 用户自定义 ID由 config.idValue 指定)
}

View File

@@ -0,0 +1,13 @@
package cn.smartjavaai.face.enums;
/**
* @author dwj
* @date 2025/5/31
*/
public enum SimilarityType {
IP, // 内积 (Inner Product)
L2, // 欧氏距离 (Euclidean Distance)
COSINE // 余弦相似度 (Cosine Similarity)
}

View File

@@ -0,0 +1,27 @@
package cn.smartjavaai.face.enums;
/**
* 向量数据库类型枚举
* @author dwj
* @date 2025/5/29
*/
public enum VectorDBType {
/**
* Sqlite,非专用向量库的备用方案
*/
SQLITE,
/**
* Milvus向量数据库
*/
MILVUS;
/**
* 未来可以添加其他向量数据库类型
*/
// FAISS,
// ELASTICSEARCH,
// PINECONE
}