mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-15 22:57:26 +00:00
1、人脸模块:人脸查询支持 向量数据库Milvus 和 SQLite
2、人脸模块:FaceNet人脸模型也支持人脸注册,查询等功能 3、人脸模块:Seetaface6 自动下载人脸库 4、人脸模块:Seetaface6解决依赖库重复下载问题 5、人脸模块:支持手动加载人脸库 6、人脸模块:人脸识别相关功能支持更多参数
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package cn.smartjavaai.face.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 人脸注册信息
|
||||
* @author dwj
|
||||
* @date 2025/5/29
|
||||
*/
|
||||
@Data
|
||||
public class FaceRegisterInfo {
|
||||
|
||||
/**
|
||||
* 向量ID
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 元数据,可以存储人脸相关的其他信息(JSON格式)
|
||||
*/
|
||||
private String metadata;
|
||||
|
||||
public FaceRegisterInfo(String id, String metadata) {
|
||||
this.id = id;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public FaceRegisterInfo() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package cn.smartjavaai.face.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 人脸查询参数
|
||||
* @author dwj
|
||||
* @date 2025/5/30
|
||||
*/
|
||||
@Data
|
||||
public class FaceSearchParams {
|
||||
|
||||
/**
|
||||
* 搜索结果数量
|
||||
*/
|
||||
private Integer topK = 1;
|
||||
|
||||
/**
|
||||
* 搜索阈值
|
||||
*/
|
||||
private Float threshold;
|
||||
|
||||
/**
|
||||
* 是否对查询结果进行归一化
|
||||
*/
|
||||
private Boolean normalizeSimilarity;
|
||||
|
||||
|
||||
public FaceSearchParams() {
|
||||
}
|
||||
|
||||
public FaceSearchParams(Integer topK, Float threshold) {
|
||||
this.topK = topK;
|
||||
this.threshold = threshold;
|
||||
}
|
||||
|
||||
public FaceSearchParams(Integer topK, Float threshold, Boolean normalizeSimilarity) {
|
||||
this.topK = topK;
|
||||
this.threshold = threshold;
|
||||
this.normalizeSimilarity = normalizeSimilarity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user