人脸检索
This commit is contained in:
parent
a1eb29c49d
commit
e128101563
@ -221,8 +221,7 @@ public class TaskFaceServiceImpl implements TaskFaceService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final float _threshold = threshold;
|
final float _threshold = threshold;
|
||||||
List<Long> reject = new ArrayList<>();
|
List<Long> faceSampleIds;
|
||||||
List<Long> faceSampleIds = new ArrayList<>();
|
|
||||||
try {
|
try {
|
||||||
SearchFaceResponse response = client.getAcsResponse(request);
|
SearchFaceResponse response = client.getAcsResponse(request);
|
||||||
log.fillResponse(response);
|
log.fillResponse(response);
|
||||||
@ -272,7 +271,6 @@ public class TaskFaceServiceImpl implements TaskFaceService {
|
|||||||
if (device != null) {
|
if (device != null) {
|
||||||
record.setDeviceName(device.getName());
|
record.setDeviceName(device.getName());
|
||||||
}
|
}
|
||||||
record.setMatched(item.getScore() > _threshold);
|
|
||||||
record.setAccept(faceSampleIds.contains(optionalFse.get().getId()));
|
record.setAccept(faceSampleIds.contains(optionalFse.get().getId()));
|
||||||
record.setFaceUrl(optionalFse.get().getFaceUrl());
|
record.setFaceUrl(optionalFse.get().getFaceUrl());
|
||||||
record.setShotDate(optionalFse.get().getCreateAt());
|
record.setShotDate(optionalFse.get().getCreateAt());
|
||||||
@ -281,6 +279,7 @@ public class TaskFaceServiceImpl implements TaskFaceService {
|
|||||||
record.setFaceUrl(getFaceUrl(record.getFaceSampleId()));
|
record.setFaceUrl(getFaceUrl(record.getFaceSampleId()));
|
||||||
}
|
}
|
||||||
record.setScore(item.getScore());
|
record.setScore(item.getScore());
|
||||||
|
record.setMatched(item.getScore() > _threshold);
|
||||||
record.setConfidence(item.getConfidence());
|
record.setConfidence(item.getConfidence());
|
||||||
collect.add(record);
|
collect.add(record);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user