Skip to content

Commit

Permalink
some improvements made
Browse files Browse the repository at this point in the history
  • Loading branch information
bestDvlpr committed Mar 16, 2021
1 parent d24d80f commit 8f19d81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ public Map<String, List<FaceVerification>> verifyFace(ProcessImageParams process
.gender(findResult.getGender())
.landmarks(findResult.getLandmarks())
.build();
if (orLoad != null && orLoad.getFacesMap() != null && orLoad.getFacesMap().inverse() != null && orLoad.getFacesMap().inverse().get(0) != null) {
faceVerification.setSubject(orLoad.getFacesMap().inverse().get(0).getName());
}

results.add(faceVerification.prepareResponse(processImageParams));
}

if (orLoad != null && orLoad.getFacesMap() != null && orLoad.getFacesMap().inverse() != null && orLoad.getFacesMap().inverse().get(0) != null) {
results.forEach(r -> r.setSubject(orLoad.getFacesMap().inverse().get(0).getName()));
}

return Map.of("result", results);
Expand Down

0 comments on commit 8f19d81

Please sign in to comment.