Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mparadina committed Nov 14, 2023
1 parent 9ebc061 commit c41be4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("expired", result.isExpired());
jsonResult.put("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage()));
jsonResult.put("faceImageLocation", SerializationUtils.serializeRectangle(result.getFaceImageLocation()));
jsonResult.put("faceImageSide", SerializationUtils.serializeEnum(result.getFaceImageSide()));
if (result.getFaceImageSide() != null) {
jsonResult.put("faceImageSide", SerializationUtils.serializeEnum(result.getFaceImageSide()));
}
jsonResult.put("fathersName", BlinkIDSerializationUtils.serializeStringResult(result.getFathersName()));
jsonResult.put("firstName", BlinkIDSerializationUtils.serializeStringResult(result.getFirstName()));
jsonResult.put("frontAdditionalProcessingInfo", BlinkIDSerializationUtils.serializeAdditionalProcessingInfo(result.getFrontAdditionalProcessingInfo()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("expired", result.isExpired());
jsonResult.put("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage()));
jsonResult.put("faceImageLocation", SerializationUtils.serializeRectangle(result.getFaceImageLocation()));
jsonResult.put("faceImageSide", SerializationUtils.serializeEnum(result.getFaceImageSide()));
if (result.getFaceImageSide() != null) {
jsonResult.put("faceImageSide", SerializationUtils.serializeEnum(result.getFaceImageSide()));
}
jsonResult.put("fathersName", BlinkIDSerializationUtils.serializeStringResult(result.getFathersName()));
jsonResult.put("firstName", BlinkIDSerializationUtils.serializeStringResult(result.getFirstName()));
jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage()));
Expand Down
2 changes: 1 addition & 1 deletion BlinkID/www/blinkIdScanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ function BlinkIdMultiSideRecognizerResult(nativeResult) {
/**
* Detailed info on data match.
*/
this.dataMatchResult = nativeResult.dataMatchResult;
this.dataMatch = nativeResult.dataMatch;

/**
* The date of birth of the document owner.
Expand Down

0 comments on commit c41be4a

Please sign in to comment.