From 38f333b5580dec21a886ca5f6c0f104ce0d787b6 Mon Sep 17 00:00:00 2001 From: mparadina Date: Fri, 16 Feb 2024 12:50:04 +0100 Subject: [PATCH 1/5] Update SDK version --- .../BlinkIDSerializationUtils.java | 1 + .../ios/sources/MBBlinkIDSerializationUtils.m | 19 +- BlinkID/www/blinkIdScanner.js | 644 +++++++++--------- 3 files changed, 341 insertions(+), 323 deletions(-) diff --git a/BlinkID/src/android/java/com/microblink/blinkid/plugins/cordova/recognizers/serialization/BlinkIDSerializationUtils.java b/BlinkID/src/android/java/com/microblink/blinkid/plugins/cordova/recognizers/serialization/BlinkIDSerializationUtils.java index 1b96a34..6fa4859 100644 --- a/BlinkID/src/android/java/com/microblink/blinkid/plugins/cordova/recognizers/serialization/BlinkIDSerializationUtils.java +++ b/BlinkID/src/android/java/com/microblink/blinkid/plugins/cordova/recognizers/serialization/BlinkIDSerializationUtils.java @@ -123,6 +123,7 @@ public static JSONObject serializeImageAnalysisResult(ImageAnalysisResult imageA jsonImageAnalysis.put("mrzDetectionStatus", SerializationUtils.serializeEnum(imageAnalysisResult.getMrzDetectionStatus())); jsonImageAnalysis.put("barcodeDetectionStatus", SerializationUtils.serializeEnum(imageAnalysisResult.getBarcodeDetectionStatus())); jsonImageAnalysis.put("cardRotation", BlinkIDSerializationUtils.serializeCardRotation(imageAnalysisResult.getCardRotation())); + jsonImageAnalysis.put("cardOrientation", SerializationUtils.serializeEnum(imageAnalysisResult.getCardOrientation())); return jsonImageAnalysis; } diff --git a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m index fe6a5e1..f26ee68 100644 --- a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m +++ b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m @@ -214,7 +214,8 @@ +(NSDictionary *) serializeImageAnalysisResult:(MBImageAnalysisResult *)imageAna @"faceDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.faceDetectionStatus)], @"mrzDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.mrzDetectionStatus)], @"barcodeDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.barcodeDetectionStatus)], - @"cardRotation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardRotation)] + @"cardRotation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardRotation)], + @"cardOrientation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardOrientation)] }; } @@ -249,19 +250,19 @@ +(MBClassAnonymizationSettings *) deserializeMBClassAnonymizationSettings:(NSDic NSNumber *region = [jsonClassAnonymizationSettings valueForKey:@"region"]; NSNumber *type = [jsonClassAnonymizationSettings valueForKey:@"type"]; - if (![country isEqual:[NSNull null]] && ![region isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) { + if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![region isEqual:[NSNull null]] && region.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil) { return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue region:region.integerValue type:type.integerValue fields:fields]; - } else if (![country isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) { + } else if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil){ return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue type:type.integerValue fields:fields]; - } else if (![country isEqual:[NSNull null]] && ![region isEqual:[NSNull null]] ) { + } else if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![region isEqual:[NSNull null]] && region.integerValue != nil ) { return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue region:region.integerValue fields:fields]; - } else if (![region isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) { - return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue type:type.integerValue fields:fields]; - } else if (![country isEqual:[NSNull null]]) { + } else if (![region isEqual:[NSNull null]] && region.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil ) { + return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue type:type.integerValue fields:fields]; + } else if (![country isEqual:[NSNull null]] && country.integerValue != nil ) { return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue fields:fields]; - } else if (![region isEqual:[NSNull null]] ) { + } else if (![region isEqual:[NSNull null]] && region.integerValue != nil) { return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue fields:fields]; - } else if (![type isEqual:[NSNull null]]) { + } else if (![type isEqual:[NSNull null]] && type.integerValue != nil ) { return [[MBClassAnonymizationSettings alloc] initWithType:type.integerValue fields:fields]; } diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index 6175c34..abb354d 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -409,6 +409,22 @@ BlinkID.prototype.RecognitionMode = Object.freeze( } ); +/** + * Defines possible card orientations + */ + BlinkID.prototype.CardOrientation = Object.freeze( + { + /** Horizontal card orientation*/ + Horizontal: 0, + + /** Vertical card orientation*/ + Vertical: 1, + + /** Detection was not performed */ + NotAvailable: 2, + } +); + /** * Defines possible color and moire statuses determined from scanned image. */ @@ -2560,128 +2576,128 @@ function BlinkIdMultiSideRecognizerResult(nativeResult) { /** * The additional address information of the document owner. */ - this.additionalAddressInformation = nativeResult.additionalAddressInformation; - + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The one more additional address information of the document owner. */ - this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; - + this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * Additional info on processing of the back side. */ - this.backAdditionalProcessingInfo = nativeResult.backAdditionalProcessingInfo; - + this.backAdditionalProcessingInfo = nativeResult.backAdditionalProcessingInfo; + /** * The back raw camera frame. */ - this.backCameraFrame = nativeResult.backCameraFrame; - + this.backCameraFrame = nativeResult.backCameraFrame; + /** * Defines possible color and moire statuses determined from scanned back image. */ - this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; - + this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; + /** * Status of the last back side recognition process. */ - this.backProcessingStatus = nativeResult.backProcessingStatus; - + this.backProcessingStatus = nativeResult.backProcessingStatus; + /** * Defines the data extracted from the back side visual inspection zone. */ - this.backVizResult = nativeResult.backVizResult; - + this.backVizResult = nativeResult.backVizResult; + /** * The barcode raw camera frame. */ - this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; - + this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; + /** * Defines the data extracted from the barcode. */ - this.barcodeResult = nativeResult.barcodeResult; - + this.barcodeResult = nativeResult.barcodeResult; + /** * The classification information. */ - this.classInfo = nativeResult.classInfo; - + this.classInfo = nativeResult.classInfo; + /** * Detailed info on data match. */ - this.dataMatch = nativeResult.dataMatch; - + this.dataMatch = nativeResult.dataMatch; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * Determines if date of expiry is permanent. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * Returns DataMatchStateSuccess if data from scanned parts/sides of the document match, * DataMatchStateFailed otherwise. For example if date of expiry is scanned from the front and back side * of the document and values do not match, this method will return DataMatchStateFailed. Result will * be DataMatchStateSuccess only if scanned values for all fields that are compared are the same. */ - this.documentDataMatch = nativeResult.documentDataMatch; - + this.documentDataMatch = nativeResult.documentDataMatch; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The one more additional number of the document. */ - this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; - + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ - this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; - + this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -2691,164 +2707,164 @@ function BlinkIdMultiSideRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * face image location from the document if enabled with returnFaceImage property. */ - this.faceImageLocation = nativeResult.faceImageLocation; - + this.faceImageLocation = nativeResult.faceImageLocation; + /** * side of document that face image is located on if enabled with returnFaceImage property. */ - this.faceImageSide = nativeResult.faceImageSide; - + this.faceImageSide = nativeResult.faceImageSide; + /** * The father's name of the document owner. */ - this.fathersName = nativeResult.fathersName; - + this.fathersName = nativeResult.fathersName; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * Additional info on processing of the front side. */ - this.frontAdditionalProcessingInfo = nativeResult.frontAdditionalProcessingInfo; - + this.frontAdditionalProcessingInfo = nativeResult.frontAdditionalProcessingInfo; + /** * The front raw camera frame. */ - this.frontCameraFrame = nativeResult.frontCameraFrame; - + this.frontCameraFrame = nativeResult.frontCameraFrame; + /** * Defines possible color and moire statuses determined from scanned front image. */ - this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; - + this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; + /** * Status of the last front side recognition process. */ - this.frontProcessingStatus = nativeResult.frontProcessingStatus; - + this.frontProcessingStatus = nativeResult.frontProcessingStatus; + /** * Defines the data extracted from the front side visual inspection zone. */ - this.frontVizResult = nativeResult.frontVizResult; - + this.frontVizResult = nativeResult.frontVizResult; + /** * back side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + /** * front side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The localized name of the document owner. */ - this.localizedName = nativeResult.localizedName; - + this.localizedName = nativeResult.localizedName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The mother's name of the document owner. */ - this.mothersName = nativeResult.mothersName; - + this.mothersName = nativeResult.mothersName; + /** * The data extracted from the machine readable zone */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * Defines status of the last recognition process. */ - this.processingStatus = nativeResult.processingStatus; - + this.processingStatus = nativeResult.processingStatus; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Recognition mode used to scan current document. */ - this.recognitionMode = nativeResult.recognitionMode; - + this.recognitionMode = nativeResult.recognitionMode; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * Returns true if recognizer has finished scanning first side and is now scanning back side, * false if it's still scanning first side. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * image of the signature if enabled with returnSignatureImage property. */ - this.signatureImage = nativeResult.signatureImage; - + this.signatureImage = nativeResult.signatureImage; + } BlinkIdMultiSideRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3028,100 +3044,100 @@ function BlinkIdSingleSideRecognizerResult(nativeResult) { /** * The additional address information of the document owner. */ - this.additionalAddressInformation = nativeResult.additionalAddressInformation; - + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The one more additional address information of the document owner. */ - this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; - + this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; + /** * Additional info on processing. */ - this.additionalProcessingInfo = nativeResult.additionalProcessingInfo; - + this.additionalProcessingInfo = nativeResult.additionalProcessingInfo; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * The barcode raw camera frame. */ - this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; - + this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; + /** * Defines the data extracted from the barcode. */ - this.barcodeResult = nativeResult.barcodeResult; - + this.barcodeResult = nativeResult.barcodeResult; + /** * The raw camera frame. */ - this.cameraFrame = nativeResult.cameraFrame; - + this.cameraFrame = nativeResult.cameraFrame; + /** * The classification information. */ - this.classInfo = nativeResult.classInfo; - + this.classInfo = nativeResult.classInfo; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * Determines if date of expiry is permanent. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The one more additional number of the document. */ - this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; - + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ - this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; - + this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -3131,138 +3147,138 @@ function BlinkIdSingleSideRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * face image location from the document if enabled with returnFaceImage property. */ - this.faceImageLocation = nativeResult.faceImageLocation; - + this.faceImageLocation = nativeResult.faceImageLocation; + /** * side of document that face image is located on if enabled with returnFaceImage property. */ - this.faceImageSide = nativeResult.faceImageSide; - + this.faceImageSide = nativeResult.faceImageSide; + /** * The father's name of the document owner. */ - this.fathersName = nativeResult.fathersName; - + this.fathersName = nativeResult.fathersName; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * Defines possible color and moire statuses determined from scanned image. */ - this.imageAnalysisResult = nativeResult.imageAnalysisResult; - + this.imageAnalysisResult = nativeResult.imageAnalysisResult; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The localized name of the document owner. */ - this.localizedName = nativeResult.localizedName; - + this.localizedName = nativeResult.localizedName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The mother's name of the document owner. */ - this.mothersName = nativeResult.mothersName; - + this.mothersName = nativeResult.mothersName; + /** * The data extracted from the machine readable zone */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * Defines status of the last recognition process. */ - this.processingStatus = nativeResult.processingStatus; - + this.processingStatus = nativeResult.processingStatus; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Recognition mode used to scan current document. */ - this.recognitionMode = nativeResult.recognitionMode; - + this.recognitionMode = nativeResult.recognitionMode; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * image of the signature if enabled with returnSignatureImage property. */ - this.signatureImage = nativeResult.signatureImage; - + this.signatureImage = nativeResult.signatureImage; + /** * Defines the data extracted from the visual inspection zone */ - this.vizResult = nativeResult.vizResult; - + this.vizResult = nativeResult.vizResult; + } BlinkIdSingleSideRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3420,23 +3436,23 @@ function DocumentFaceRecognizerResult(nativeResult) { /** * Quadrangle represeting corner points of the document within the input image. */ - this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; - + this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * Quadrangle represeting corner points of the face image within the input image. */ - this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; - + this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + } DocumentFaceRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3523,74 +3539,74 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * Type of the barcode scanned * * @return Type of the barcode */ - this.barcodeType = nativeResult.barcodeType; - + this.barcodeType = nativeResult.barcodeType; + /** * The city address portion of the document owner. */ - this.city = nativeResult.city; - + this.city = nativeResult.city; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The document type deduced from the recognized barcode * * @return Type of the document */ - this.documentType = nativeResult.documentType; - + this.documentType = nativeResult.documentType; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * The additional privileges granted to the driver license owner. */ - this.endorsements = nativeResult.endorsements; - + this.endorsements = nativeResult.endorsements; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -3600,126 +3616,126 @@ function IdBarcodeRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * Document specific extended elements that contain all barcode fields in their original form. * * Currently this is only filled for AAMVACompliant documents. */ - this.extendedElements = nativeResult.extendedElements; - + this.extendedElements = nativeResult.extendedElements; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The jurisdiction code address portion of the document owner. */ - this.jurisdiction = nativeResult.jurisdiction; - + this.jurisdiction = nativeResult.jurisdiction; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The middle name of the document owner. */ - this.middleName = nativeResult.middleName; - + this.middleName = nativeResult.middleName; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * The postal code address portion of the document owner. */ - this.postalCode = nativeResult.postalCode; - + this.postalCode = nativeResult.postalCode; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Byte array with result of the scan */ - this.rawData = nativeResult.rawData; - + this.rawData = nativeResult.rawData; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * The restrictions to driving privileges for the driver license owner. */ - this.restrictions = nativeResult.restrictions; - + this.restrictions = nativeResult.restrictions; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * The street address portion of the document owner. */ - this.street = nativeResult.street; - + this.street = nativeResult.street; + /** * Retrieves string content of scanned data */ - this.stringData = nativeResult.stringData; - + this.stringData = nativeResult.stringData; + /** * Flag indicating uncertain scanning data * E.g obtained from damaged barcode. */ - this.uncertain = nativeResult.uncertain; - + this.uncertain = nativeResult.uncertain; + /** * The type of vehicle the driver license owner has privilege to drive. */ - this.vehicleClass = nativeResult.vehicleClass; - + this.vehicleClass = nativeResult.vehicleClass; + } IdBarcodeRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3752,34 +3768,34 @@ function MrtdCombinedRecognizerResult(nativeResult) { * of the document and values do not match, this method will return DataMatchStateFailed. Result will * be DataMatchStateSuccess only if scanned values for all fields that are compared are the same. */ - this.documentDataMatch = nativeResult.documentDataMatch; - + this.documentDataMatch = nativeResult.documentDataMatch; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * back side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + /** * front side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + /** * Returns the Data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * Returns true if recognizer has finished scanning first side and is now scanning back side, * false if it's still scanning first side. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + } MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3888,13 +3904,13 @@ function MrtdRecognizerResult(nativeResult) { /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * Returns the Data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3976,18 +3992,18 @@ function PassportRecognizerResult(nativeResult) { /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } PassportRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -4069,18 +4085,18 @@ function VisaRecognizerResult(nativeResult) { /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } VisaRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); From be2c7d199015fc679184700ce32701559fb686b7 Mon Sep 17 00:00:00 2001 From: mparadina Date: Fri, 16 Feb 2024 12:54:38 +0100 Subject: [PATCH 2/5] Update versions --- BlinkID/package.json | 2 +- BlinkID/plugin.xml | 2 +- BlinkID/scripts/initIOSFramework.sh | 2 +- BlinkID/src/android/libBlinkID.gradle | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BlinkID/package.json b/BlinkID/package.json index d7f42ee..f4af209 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-cordova", - "version": "6.4.0", + "version": "6.5.0", "description": "A small and powerful ID card scanning library", "cordova": { "id": "blinkid-cordova", diff --git a/BlinkID/plugin.xml b/BlinkID/plugin.xml index 35d7465..5be2c22 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -2,7 +2,7 @@ + version="6.5.0"> BlinkIdScanner A small and powerful ID card scanning library diff --git a/BlinkID/scripts/initIOSFramework.sh b/BlinkID/scripts/initIOSFramework.sh index 4cb221d..0179cad 100755 --- a/BlinkID/scripts/initIOSFramework.sh +++ b/BlinkID/scripts/initIOSFramework.sh @@ -4,7 +4,7 @@ HERE="$(dirname "$(test -L "$0" && readlink "$0" || echo "$0")")" pushd "${HERE}/../src/ios/" > /dev/null -LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v6.4.0/BlinkID.xcframework.zip' +LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v6.5.0/BlinkID.xcframework.zip' FILENAME='BlinkID.xcframework.zip' # BlinkID framework will be obtained via wget or curl diff --git a/BlinkID/src/android/libBlinkID.gradle b/BlinkID/src/android/libBlinkID.gradle index c15df66..ec162ae 100644 --- a/BlinkID/src/android/libBlinkID.gradle +++ b/BlinkID/src/android/libBlinkID.gradle @@ -6,7 +6,7 @@ repositories { } dependencies { - implementation('com.microblink:blinkid:6.4.0@aar') { + implementation('com.microblink:blinkid:6.5.0@aar') { transitive = true } } From cb7b653165b434f8b2a580495a4785e88540d9b4 Mon Sep 17 00:00:00 2001 From: mparadina Date: Fri, 16 Feb 2024 12:59:46 +0100 Subject: [PATCH 3/5] License key update --- sample_files/www/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample_files/www/js/index.js b/sample_files/www/js/index.js index 4fc9229..9e47591 100644 --- a/sample_files/www/js/index.js +++ b/sample_files/www/js/index.js @@ -77,8 +77,8 @@ var app = { // package name/bundleID com.microblink.sample var licenseKeys = { - android: 'sRwCABVjb20ubWljcm9ibGluay5zYW1wbGUAbGV5SkRjbVZoZEdWa1QyNGlPakUzTURNd056Y3lNRE0xTWpnc0lrTnlaV0YwWldSR2IzSWlPaUkwT1RabFpEQXpaUzAwT0RBeExUUXpZV1F0WVRrMU5DMDBNemMyWlRObU9UTTVNR1FpZlE9PY6A6Eq56GBOfiH4PZYVCf1vcY3/GuHCOkdOhF5rUKHodDOB3Q01339g0q22TM/fWv5f06CvIiAamEhg1m8xAYWSQt2VVSsVJaAncz+bGexcASnuhlHA+LTLnSZGIxSgnNKBJbizQypDRsyFKKpBq7K2SfVi+gM=', - ios: 'sRwCABVjb20ubWljcm9ibGluay5zYW1wbGUBbGV5SkRjbVZoZEdWa1QyNGlPakUzTURNd056Y3hORFkzT1RJc0lrTnlaV0YwWldSR2IzSWlPaUkwT1RabFpEQXpaUzAwT0RBeExUUXpZV1F0WVRrMU5DMDBNemMyWlRObU9UTTVNR1FpZlE9PYPwAuE88FDjP95RyiGUewj+e6SGUoHitmTt0i2T87nVbH79ynAtPdmuQV49+U4ulln6j4ku3momxVE2igI9howeOZwxK5IbpMVG3ooDibChEXUccclpCCv08w3gEUwsP7hGOIBbA4HP45vru2nkan74SUYXWVU=' + android: 'sRwCABVjb20ubWljcm9ibGluay5zYW1wbGUAbGV5SkRjbVZoZEdWa1QyNGlPakUzTURnd09EUTNNelkxTmprc0lrTnlaV0YwWldSR2IzSWlPaUkwT1RabFpEQXpaUzAwT0RBeExUUXpZV1F0WVRrMU5DMDBNemMyWlRObU9UTTVNR1FpZlE9PRIv5OawGAVdpvmuz+999CsJyIAgtV3h96BJo1Fq+xBZnKDoKhL01jBUrxC0E4+EeWoTuEtPPcDte2KHgjOP7Z4y+Mk9ihWDHTjgANWfFwG2Gd7HYJxgwcYQsTvICqS1CBklIILTfbXahwtD4ZKh0ghaxUJf7gU=', + ios: 'sRwCABVjb20ubWljcm9ibGluay5zYW1wbGUBbGV5SkRjbVZoZEdWa1QyNGlPakUzTURnd09EUTFNamM1TnpJc0lrTnlaV0YwWldSR2IzSWlPaUkwT1RabFpEQXpaUzAwT0RBeExUUXpZV1F0WVRrMU5DMDBNemMyWlRObU9UTTVNR1FpZlE9PTYmqMAMVMiFzaNDv15W9/CxDFVRDWRjok+uP0GtswDV4XTVGmhbivKDEb9Gtk2iMzf29qFWF8aUjIES4QSQFJG0xfBXZhluSk7lt4A959aHAZ0+BWgDnqZUPJAF2jZd0Pl2Kt1oDxLtqtf8V/RR+dPYzUV0PEA=' }; function buildResult(result, key) { From e79aec3c1a8995bd18da05f359db3e37b6fc9907 Mon Sep 17 00:00:00 2001 From: mparadina Date: Fri, 16 Feb 2024 13:11:16 +0100 Subject: [PATCH 4/5] Update Release notes.md --- Release notes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Release notes.md b/Release notes.md index 5c8cc32..2924634 100644 --- a/Release notes.md +++ b/Release notes.md @@ -1,3 +1,7 @@ +## 6.5.0 +- Updated to [Android SDK v6.5.0](https://github.com/BlinkID/blinkid-android/releases/tag/v6.5.0) and [iOS SDK v6.4.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v6.5.0) +- Added `cardOrientation` property to `ImageAnalysisResult` + ## 6.4.0 - Updated to [Android SDK v6.4.0](https://github.com/BlinkID/blinkid-android/releases/tag/v6.4.0) and [iOS SDK v6.4.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v6.4.0) From 63b3b109b94704d4e4508953d8810cc3dd4e1222 Mon Sep 17 00:00:00 2001 From: mparadina Date: Fri, 16 Feb 2024 13:15:48 +0100 Subject: [PATCH 5/5] Fix spacing in recognizer results --- BlinkID/www/blinkIdScanner.js | 628 +++++++++++++++++----------------- 1 file changed, 314 insertions(+), 314 deletions(-) diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index abb354d..5c5a47c 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -2576,128 +2576,128 @@ function BlinkIdMultiSideRecognizerResult(nativeResult) { /** * The additional address information of the document owner. */ - this.additionalAddressInformation = nativeResult.additionalAddressInformation; - + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The one more additional address information of the document owner. */ - this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; - + this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * Additional info on processing of the back side. */ - this.backAdditionalProcessingInfo = nativeResult.backAdditionalProcessingInfo; - + this.backAdditionalProcessingInfo = nativeResult.backAdditionalProcessingInfo; + /** * The back raw camera frame. */ - this.backCameraFrame = nativeResult.backCameraFrame; - + this.backCameraFrame = nativeResult.backCameraFrame; + /** * Defines possible color and moire statuses determined from scanned back image. */ - this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; - + this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; + /** * Status of the last back side recognition process. */ - this.backProcessingStatus = nativeResult.backProcessingStatus; - + this.backProcessingStatus = nativeResult.backProcessingStatus; + /** * Defines the data extracted from the back side visual inspection zone. */ - this.backVizResult = nativeResult.backVizResult; - + this.backVizResult = nativeResult.backVizResult; + /** * The barcode raw camera frame. */ - this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; - + this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; + /** * Defines the data extracted from the barcode. */ - this.barcodeResult = nativeResult.barcodeResult; - + this.barcodeResult = nativeResult.barcodeResult; + /** * The classification information. */ - this.classInfo = nativeResult.classInfo; - + this.classInfo = nativeResult.classInfo; + /** * Detailed info on data match. */ - this.dataMatch = nativeResult.dataMatch; - + this.dataMatch = nativeResult.dataMatch; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * Determines if date of expiry is permanent. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * Returns DataMatchStateSuccess if data from scanned parts/sides of the document match, * DataMatchStateFailed otherwise. For example if date of expiry is scanned from the front and back side * of the document and values do not match, this method will return DataMatchStateFailed. Result will * be DataMatchStateSuccess only if scanned values for all fields that are compared are the same. */ - this.documentDataMatch = nativeResult.documentDataMatch; - + this.documentDataMatch = nativeResult.documentDataMatch; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The one more additional number of the document. */ - this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; - + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ - this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; - + this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -2707,164 +2707,164 @@ function BlinkIdMultiSideRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * face image location from the document if enabled with returnFaceImage property. */ - this.faceImageLocation = nativeResult.faceImageLocation; - + this.faceImageLocation = nativeResult.faceImageLocation; + /** * side of document that face image is located on if enabled with returnFaceImage property. */ - this.faceImageSide = nativeResult.faceImageSide; - + this.faceImageSide = nativeResult.faceImageSide; + /** * The father's name of the document owner. */ - this.fathersName = nativeResult.fathersName; - + this.fathersName = nativeResult.fathersName; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * Additional info on processing of the front side. */ - this.frontAdditionalProcessingInfo = nativeResult.frontAdditionalProcessingInfo; - + this.frontAdditionalProcessingInfo = nativeResult.frontAdditionalProcessingInfo; + /** * The front raw camera frame. */ - this.frontCameraFrame = nativeResult.frontCameraFrame; - + this.frontCameraFrame = nativeResult.frontCameraFrame; + /** * Defines possible color and moire statuses determined from scanned front image. */ - this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; - + this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; + /** * Status of the last front side recognition process. */ - this.frontProcessingStatus = nativeResult.frontProcessingStatus; - + this.frontProcessingStatus = nativeResult.frontProcessingStatus; + /** * Defines the data extracted from the front side visual inspection zone. */ - this.frontVizResult = nativeResult.frontVizResult; - + this.frontVizResult = nativeResult.frontVizResult; + /** * back side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + /** * front side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The localized name of the document owner. */ - this.localizedName = nativeResult.localizedName; - + this.localizedName = nativeResult.localizedName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The mother's name of the document owner. */ - this.mothersName = nativeResult.mothersName; - + this.mothersName = nativeResult.mothersName; + /** * The data extracted from the machine readable zone */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * Defines status of the last recognition process. */ - this.processingStatus = nativeResult.processingStatus; - + this.processingStatus = nativeResult.processingStatus; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Recognition mode used to scan current document. */ - this.recognitionMode = nativeResult.recognitionMode; - + this.recognitionMode = nativeResult.recognitionMode; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * Returns true if recognizer has finished scanning first side and is now scanning back side, * false if it's still scanning first side. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * image of the signature if enabled with returnSignatureImage property. */ - this.signatureImage = nativeResult.signatureImage; - + this.signatureImage = nativeResult.signatureImage; + } BlinkIdMultiSideRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3044,100 +3044,100 @@ function BlinkIdSingleSideRecognizerResult(nativeResult) { /** * The additional address information of the document owner. */ - this.additionalAddressInformation = nativeResult.additionalAddressInformation; - + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The one more additional address information of the document owner. */ - this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; - + this.additionalOptionalAddressInformation = nativeResult.additionalOptionalAddressInformation; + /** * Additional info on processing. */ - this.additionalProcessingInfo = nativeResult.additionalProcessingInfo; - + this.additionalProcessingInfo = nativeResult.additionalProcessingInfo; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * The barcode raw camera frame. */ - this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; - + this.barcodeCameraFrame = nativeResult.barcodeCameraFrame; + /** * Defines the data extracted from the barcode. */ - this.barcodeResult = nativeResult.barcodeResult; - + this.barcodeResult = nativeResult.barcodeResult; + /** * The raw camera frame. */ - this.cameraFrame = nativeResult.cameraFrame; - + this.cameraFrame = nativeResult.cameraFrame; + /** * The classification information. */ - this.classInfo = nativeResult.classInfo; - + this.classInfo = nativeResult.classInfo; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * Determines if date of expiry is permanent. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The one more additional number of the document. */ - this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; - + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ - this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; - + this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -3147,138 +3147,138 @@ function BlinkIdSingleSideRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * face image location from the document if enabled with returnFaceImage property. */ - this.faceImageLocation = nativeResult.faceImageLocation; - + this.faceImageLocation = nativeResult.faceImageLocation; + /** * side of document that face image is located on if enabled with returnFaceImage property. */ - this.faceImageSide = nativeResult.faceImageSide; - + this.faceImageSide = nativeResult.faceImageSide; + /** * The father's name of the document owner. */ - this.fathersName = nativeResult.fathersName; - + this.fathersName = nativeResult.fathersName; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * Defines possible color and moire statuses determined from scanned image. */ - this.imageAnalysisResult = nativeResult.imageAnalysisResult; - + this.imageAnalysisResult = nativeResult.imageAnalysisResult; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The localized name of the document owner. */ - this.localizedName = nativeResult.localizedName; - + this.localizedName = nativeResult.localizedName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The mother's name of the document owner. */ - this.mothersName = nativeResult.mothersName; - + this.mothersName = nativeResult.mothersName; + /** * The data extracted from the machine readable zone */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * Defines status of the last recognition process. */ - this.processingStatus = nativeResult.processingStatus; - + this.processingStatus = nativeResult.processingStatus; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Recognition mode used to scan current document. */ - this.recognitionMode = nativeResult.recognitionMode; - + this.recognitionMode = nativeResult.recognitionMode; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * image of the signature if enabled with returnSignatureImage property. */ - this.signatureImage = nativeResult.signatureImage; - + this.signatureImage = nativeResult.signatureImage; + /** * Defines the data extracted from the visual inspection zone */ - this.vizResult = nativeResult.vizResult; - + this.vizResult = nativeResult.vizResult; + } BlinkIdSingleSideRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3436,23 +3436,23 @@ function DocumentFaceRecognizerResult(nativeResult) { /** * Quadrangle represeting corner points of the document within the input image. */ - this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; - + this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * Quadrangle represeting corner points of the face image within the input image. */ - this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; - + this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + } DocumentFaceRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3539,74 +3539,74 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * The additional name information of the document owner. */ - this.additionalNameInformation = nativeResult.additionalNameInformation; - + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The address of the document owner. */ - this.address = nativeResult.address; - + this.address = nativeResult.address; + /** * The current age of the document owner in years. It is calculated difference * between now and date of birth. Now is current time on the device. * @return current age of the document owner in years or -1 if date of birth is unknown. */ - this.age = nativeResult.age; - + this.age = nativeResult.age; + /** * Type of the barcode scanned * * @return Type of the barcode */ - this.barcodeType = nativeResult.barcodeType; - + this.barcodeType = nativeResult.barcodeType; + /** * The city address portion of the document owner. */ - this.city = nativeResult.city; - + this.city = nativeResult.city; + /** * The date of birth of the document owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + /** * The date of expiry of the document. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + /** * The date of issue of the document. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** * The additional number of the document. */ - this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; - + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * The document number. */ - this.documentNumber = nativeResult.documentNumber; - + this.documentNumber = nativeResult.documentNumber; + /** * The document type deduced from the recognized barcode * * @return Type of the document */ - this.documentType = nativeResult.documentType; - + this.documentType = nativeResult.documentType; + /** * The employer of the document owner. */ - this.employer = nativeResult.employer; - + this.employer = nativeResult.employer; + /** * The additional privileges granted to the driver license owner. */ - this.endorsements = nativeResult.endorsements; - + this.endorsements = nativeResult.endorsements; + /** * Checks whether the document has expired or not by comparing the current * time on the device with the date of expiry. @@ -3616,126 +3616,126 @@ function IdBarcodeRecognizerResult(nativeResult) { * date of expiry has passed * date of expiry is unknown and it is not permanent */ - this.expired = nativeResult.expired; - + this.expired = nativeResult.expired; + /** * Document specific extended elements that contain all barcode fields in their original form. * * Currently this is only filled for AAMVACompliant documents. */ - this.extendedElements = nativeResult.extendedElements; - + this.extendedElements = nativeResult.extendedElements; + /** * The first name of the document owner. */ - this.firstName = nativeResult.firstName; - + this.firstName = nativeResult.firstName; + /** * The full name of the document owner. */ - this.fullName = nativeResult.fullName; - + this.fullName = nativeResult.fullName; + /** * The issuing authority of the document. */ - this.issuingAuthority = nativeResult.issuingAuthority; - + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The jurisdiction code address portion of the document owner. */ - this.jurisdiction = nativeResult.jurisdiction; - + this.jurisdiction = nativeResult.jurisdiction; + /** * The last name of the document owner. */ - this.lastName = nativeResult.lastName; - + this.lastName = nativeResult.lastName; + /** * The marital status of the document owner. */ - this.maritalStatus = nativeResult.maritalStatus; - + this.maritalStatus = nativeResult.maritalStatus; + /** * The middle name of the document owner. */ - this.middleName = nativeResult.middleName; - + this.middleName = nativeResult.middleName; + /** * The nationality of the documet owner. */ - this.nationality = nativeResult.nationality; - + this.nationality = nativeResult.nationality; + /** * The personal identification number. */ - this.personalIdNumber = nativeResult.personalIdNumber; - + this.personalIdNumber = nativeResult.personalIdNumber; + /** * The place of birth of the document owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; - + this.placeOfBirth = nativeResult.placeOfBirth; + /** * The postal code address portion of the document owner. */ - this.postalCode = nativeResult.postalCode; - + this.postalCode = nativeResult.postalCode; + /** * The profession of the document owner. */ - this.profession = nativeResult.profession; - + this.profession = nativeResult.profession; + /** * The race of the document owner. */ - this.race = nativeResult.race; - + this.race = nativeResult.race; + /** * Byte array with result of the scan */ - this.rawData = nativeResult.rawData; - + this.rawData = nativeResult.rawData; + /** * The religion of the document owner. */ - this.religion = nativeResult.religion; - + this.religion = nativeResult.religion; + /** * The residential stauts of the document owner. */ - this.residentialStatus = nativeResult.residentialStatus; - + this.residentialStatus = nativeResult.residentialStatus; + /** * The restrictions to driving privileges for the driver license owner. */ - this.restrictions = nativeResult.restrictions; - + this.restrictions = nativeResult.restrictions; + /** * The sex of the document owner. */ - this.sex = nativeResult.sex; - + this.sex = nativeResult.sex; + /** * The street address portion of the document owner. */ - this.street = nativeResult.street; - + this.street = nativeResult.street; + /** * Retrieves string content of scanned data */ - this.stringData = nativeResult.stringData; - + this.stringData = nativeResult.stringData; + /** * Flag indicating uncertain scanning data * E.g obtained from damaged barcode. */ - this.uncertain = nativeResult.uncertain; - + this.uncertain = nativeResult.uncertain; + /** * The type of vehicle the driver license owner has privilege to drive. */ - this.vehicleClass = nativeResult.vehicleClass; - + this.vehicleClass = nativeResult.vehicleClass; + } IdBarcodeRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3768,34 +3768,34 @@ function MrtdCombinedRecognizerResult(nativeResult) { * of the document and values do not match, this method will return DataMatchStateFailed. Result will * be DataMatchStateSuccess only if scanned values for all fields that are compared are the same. */ - this.documentDataMatch = nativeResult.documentDataMatch; - + this.documentDataMatch = nativeResult.documentDataMatch; + /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * back side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + /** * front side image of the document if enabled with returnFullDocumentImage property. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + /** * Returns the Data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** * Returns true if recognizer has finished scanning first side and is now scanning back side, * false if it's still scanning first side. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + } MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3904,13 +3904,13 @@ function MrtdRecognizerResult(nativeResult) { /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * Returns the Data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -3992,18 +3992,18 @@ function PassportRecognizerResult(nativeResult) { /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } PassportRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); @@ -4085,18 +4085,18 @@ function VisaRecognizerResult(nativeResult) { /** * face image from the document if enabled with returnFaceImage property. */ - this.faceImage = nativeResult.faceImage; - + this.faceImage = nativeResult.faceImage; + /** * full document image if enabled with returnFullDocumentImage property. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - + this.fullDocumentImage = nativeResult.fullDocumentImage; + /** * The data extracted from the machine readable zone. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + } VisaRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty);