This commit is contained in:
2025-04-05 13:21:52 +08:00
parent 67dca0d4d4
commit 0ab142e1c4
19 changed files with 215 additions and 337 deletions

View File

@@ -33,7 +33,7 @@ public class FaceDetectLog {
private String matchLocalRecord;
@TableField(exist = false)
private List<SearchFaceResponse.Data.MatchListItem.FaceItemsItem> matchRawRecord;
private List matchRawRecord;
public static FaceDetectLog quickCreate(String reason) {
FaceDetectLog log = new FaceDetectLog();
@@ -53,19 +53,19 @@ public class FaceDetectLog {
return this;
}
public FaceDetectLog fillResponse(SearchFaceResponse response) {
this.matchRawResult = JSONObject.toJSONString(response.getData());
public FaceDetectLog fillResponse(Object response) {
this.matchRawResult = JSONObject.toJSONString(response);
return this;
}
public List<MatchLocalRecord> matchLocalRecord() {
public List matchLocalRecord() {
if (matchLocalRecord == null) {
return null;
}
return JSONArray.parseArray(matchLocalRecord, MatchLocalRecord.class);
}
public void matchLocalRecord(List<MatchLocalRecord> matchLocalRecord) {
public void matchLocalRecord(List matchLocalRecord) {
if (matchLocalRecord == null) {
this.matchLocalRecord = null;
} else {

View File

@@ -10,7 +10,6 @@ public class MatchLocalRecord {
private String deviceName;
private String faceUrl;
private Float score;
private Float confidence;
private String idStr;
private Date shotDate;
private Boolean matched;

View File

@@ -3,6 +3,7 @@ package com.ycwl.basic.model.pc.scenic.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycwl.basic.facebody.enums.FaceBodyAdapterType;
import com.ycwl.basic.storage.enums.StorageType;
import lombok.Data;
@@ -75,4 +76,7 @@ public class ScenicConfigEntity {
private String watermarkType;
private String watermarkScenicText;
private String watermarkDtFormat;
private FaceBodyAdapterType faceType;
private String faceConfigJson;
}