You've already forked FrameTour-BE
fix(face-matching): 修复无人脸匹配结果时切片状态未更新问题
- 无匹配结果时将切片状态设置为已完成,避免前端一直显示"合成中" - 确保人脸状态管理器正确更新切片状态为COMPLETED
This commit is contained in:
@@ -266,6 +266,9 @@ public class FaceMatchingOrchestrator {
|
|||||||
if (sampleListIds == null || sampleListIds.isEmpty()) {
|
if (sampleListIds == null || sampleListIds.isEmpty()) {
|
||||||
log.warn("人脸匹配无结果:faceId={}", faceId);
|
log.warn("人脸匹配无结果:faceId={}", faceId);
|
||||||
|
|
||||||
|
// 无匹配结果时,将切片状态设置为已完成,避免前端一直显示"合成中"
|
||||||
|
faceStatusManager.setFaceCutStatus(faceId, FaceCutStatus.COMPLETED);
|
||||||
|
|
||||||
// 记录低阈值检测
|
// 记录低阈值检测
|
||||||
if (searchResult.isLowThreshold()) {
|
if (searchResult.isLowThreshold()) {
|
||||||
metricsRecorder.recordLowThreshold(faceId);
|
metricsRecorder.recordLowThreshold(faceId);
|
||||||
|
|||||||
Reference in New Issue
Block a user