Skip to content

Commit

Permalink
Merge pull request #624 from SwethaKrish4/mydevelop
Browse files Browse the repository at this point in the history
MOSIP-28355: ISO standard validator fix
  • Loading branch information
mayuradesh committed Jul 7, 2023
2 parents 6e8d7af + 08dbb59 commit d286ce7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ private ValidationResultDto doIrisISOValidations(String purpose, String bioValue
DecoderRequestInfo requestInfo = new DecoderRequestInfo();
requestInfo.setImageData(inImageData);

int bioDataType = FingerISOStandardsValidator.getInstance().getBioDataType(purpose, Modality.Iris,
int bioDataType = IrisISOStandardsValidator.getInstance().getBioDataType(purpose, Modality.Iris,
inImageData);
if (bioDataType == ImageType.JPEG2000.value()) {
decoder = new OpenJpegDecoder();
Expand Down Expand Up @@ -1067,7 +1067,7 @@ private ValidationResultDto doIrisISOValidations(String purpose, String bioValue
}

int compressionType = bdir.getCompressionType();
if (IrisISOStandardsValidator.getInstance().isValidImageCompressionType(purpose, compressionType,
if (!IrisISOStandardsValidator.getInstance().isValidImageCompressionType(purpose, compressionType,
decoderRequestDto)) {
message.append(
"<BR>Invalid Image Compression Type for Iris Modality, expected values[Purpose(Auth), ({JPEG_2000_LOSSY(0x02)}), Purpose(Registration), ({JPEG_2000_LOSS_LESS(0x01)})], but received input value[Purpose("
Expand Down Expand Up @@ -1691,7 +1691,7 @@ private ValidationResultDto doFaceISOValidations(String purpose, String bioValue
DecoderRequestInfo requestInfo = new DecoderRequestInfo();
requestInfo.setImageData(inImageData);

int bioDataType = FingerISOStandardsValidator.getInstance().getBioDataType(purpose, Modality.Face,
int bioDataType = FaceISOStandardsValidator.getInstance().getBioDataType(purpose, Modality.Face,
inImageData);
if (bioDataType == ImageType.JPEG2000.value()) {
decoder = new OpenJpegDecoder();
Expand Down

0 comments on commit d286ce7

Please sign in to comment.