Skip to content

Commit

Permalink
Update MatchService.java (#281)
Browse files Browse the repository at this point in the history
Signed-off-by: Neha2365 <[email protected]>
  • Loading branch information
Neha2365 authored Jul 12, 2023
1 parent 6503d01 commit eb59558
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,24 +380,26 @@ private Decision compareFaces(List<BIR> sampleSegments, List<BIR> gallerySegment
break;

Boolean bio_found = false;
LOGGER.info("SampleBIR Value check",sampleBIR.getBdbInfo().getSubtype());
if (sampleBIR.getBdbInfo().getSubtype() != null && !sampleBIR.getBdbInfo().getSubtype().isEmpty()
&& sampleBIR.getBdbInfo().getSubtype().get(0) != null
&& !sampleBIR.getBdbInfo().getSubtype().get(0).isEmpty()) {
for (BIR galleryBIR : gallerySegments) {
// need to check isValidBIRParams and isValidBDBData too
// if (!isValidBirData(galleryBIR))
// break;
if (galleryBIR.getBdbInfo().getSubtype().get(0)
LOGGER.info("GalleryBIR Value check",galleryBIR.getBdbInfo().getSubtype());
if (galleryBIR.getBdbInfo().getSubtype() == null || galleryBIR.getBdbInfo().getSubtype().isEmpty() || galleryBIR.getBdbInfo().getSubtype().get(0)
.equals(sampleBIR.getBdbInfo().getSubtype().get(0))) {
if (Util.compareHash(galleryBIR.getBdb(), sampleBIR.getBdb())) {
LOGGER.info("Modality: {}; Subtype: {} -- matched", BiometricType.FACE.value(),
galleryBIR.getBdbInfo().getSubtype().get(0));
galleryBIR.getBdbInfo().getSubtype());
matched.add(true);
bio_found = true;
break;
} else {
LOGGER.info("Modality: {}; Subtype: {} -- not matched", BiometricType.FACE.value(),
galleryBIR.getBdbInfo().getSubtype().get(0));
galleryBIR.getBdbInfo().getSubtype());
matched.add(false);
bio_found = true;
}
Expand Down Expand Up @@ -439,4 +441,4 @@ private Decision compareFaces(List<BIR> sampleSegments, List<BIR> gallerySegment
}
return decision;
}
}
}

0 comments on commit eb59558

Please sign in to comment.