From 0b04d6e4f4fad11b245051e679df36043defefe2 Mon Sep 17 00:00:00 2001 From: Jura Skrlec Date: Wed, 7 Apr 2021 11:55:04 +0200 Subject: [PATCH 1/6] [iOS] Update to XCFramework --- BlinkID/package.json | 2 +- BlinkID/plugin.xml | 2 +- BlinkID/scripts/initIOSFramework.sh | 12 ++++-------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/BlinkID/package.json b/BlinkID/package.json index 16cdcf7..f63573e 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-cordova", - "version": "5.10.0", + "version": "5.11.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 b8f3bc5..9245a03 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -148,7 +148,7 @@ - + diff --git a/BlinkID/scripts/initIOSFramework.sh b/BlinkID/scripts/initIOSFramework.sh index 50ab09b..6f84358 100755 --- a/BlinkID/scripts/initIOSFramework.sh +++ b/BlinkID/scripts/initIOSFramework.sh @@ -4,8 +4,8 @@ HERE="$(dirname "$(test -L "$0" && readlink "$0" || echo "$0")")" pushd "${HERE}/../src/ios/" > /dev/null -LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v5.10.0/Microblink.framework.zip' -FILENAME='Microblink.framework.zip' +LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v5.11.0/Microblink.xcframework.zip' +FILENAME='Microblink.xcframework.zip' # check if Microblink framework and bundle already exist wget --version > /dev/null 2>&1 || { echo "ERROR: couldn't download Microblink framework, install wget" && exit 1; } @@ -19,19 +19,15 @@ if [ -d 'Microblink.framework' ] ; then rm -rf Microblink.framework && echo "Removing Microblink.framework" fi + if [ -d 'Microblink.xcframework' ] ; then rm -rf Microblink.xcframework && echo "Removing Microblink.xcframework" fi echo "Unzipping ${FILENAME}" -unzip -v > /dev/null 2>&1 || { echo "ERROR: couldn't unzip Microblink framework, install unzip" && exit 1; } +unzip -v > /dev/null 2>&1 || { echo "ERROR: couldn't unzip Microblink xcframework, install unzip" && exit 1; } unzip -o "${FILENAME}" > /dev/null 2>&1 && echo "Unzipped ${FILENAME}" -# cd blinkid-ios || exit 1 - -# mv -f Microblink.xcframework ../Microblink.xcframework -# cd .. - echo "Removing unnecessary files" rm -rfv Microblink.xcframework.zip >/dev/null 2>&1 From 98c0397b98f9e9df68ffaa85ea59a808c73922f1 Mon Sep 17 00:00:00 2001 From: Ivan Grce Date: Tue, 13 Apr 2021 10:22:42 +0200 Subject: [PATCH 2/6] [android] updated bindings for v5.11.0 --- BlinkID/plugin.xml | 1 + .../plugins/cordova/SerializationUtils.java | 3 +- .../overlays/OverlaySerializationUtils.java | 31 + .../BlinkIdOverlaySettingsSerialization.java | 3 + .../DocumentOverlaySettingsSerialization.java | 6 +- ...ificationOverlaySettingsSerialization.java | 3 + ...linkIdCombinedRecognizerSerialization.java | 2 +- .../BlinkIdRecognizerSerialization.java | 2 +- BlinkID/src/android/libBlinkID.gradle | 2 +- BlinkID/www/blinkIdScanner.js | 537 ++++++------------ 10 files changed, 228 insertions(+), 362 deletions(-) create mode 100644 BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/OverlaySerializationUtils.java diff --git a/BlinkID/plugin.xml b/BlinkID/plugin.xml index 9245a03..724b04b 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -59,6 +59,7 @@ + diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/SerializationUtils.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/SerializationUtils.java index 84ab4f7..c7fb4aa 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/SerializationUtils.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/SerializationUtils.java @@ -130,8 +130,9 @@ public static RecognitionModeFilter deserializeRecognitionModeFilter(JSONObject boolean enableMrzVisa = (boolean)json.optBoolean("enableMrzVisa", true); boolean enableMrzPassport = (boolean)json.optBoolean("enableMrzPassport", true); boolean enablePhotoId = (boolean)json.optBoolean("enablePhotoId", true); + boolean enableBarcodeId = (boolean)json.optBoolean("enableBarcodeId", true); boolean enableFullDocumentRecognition = (boolean)json.optBoolean("enableFullDocumentRecognition", true); - return new RecognitionModeFilter(enableMrzId, enableMrzVisa, enableMrzPassport, enablePhotoId, enableFullDocumentRecognition); + return new RecognitionModeFilter(enableMrzId, enableMrzVisa, enableMrzPassport, enablePhotoId, enableBarcodeId, enableFullDocumentRecognition); } else { return new RecognitionModeFilter(); } diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/OverlaySerializationUtils.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/OverlaySerializationUtils.java new file mode 100644 index 0000000..d747f6b --- /dev/null +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/OverlaySerializationUtils.java @@ -0,0 +1,31 @@ +package com.microblink.plugins.cordova.overlays; + +import android.content.Context; + +import com.microblink.hardware.camera.CameraType; +import com.microblink.plugins.cordova.FakeR; +import com.microblink.uisettings.CameraSettings; +import com.microblink.uisettings.UISettings; +import com.microblink.uisettings.options.BeepSoundUIOptions; + +import org.json.JSONObject; + +public class OverlaySerializationUtils { + + public static void prepareCommonUiSettings(Context context, JSONObject jsonUISettings, UISettings uiSettings) { + boolean useFrontCamera = jsonUISettings.optBoolean("useFrontCamera", false); + if (useFrontCamera) { + CameraSettings cameraSettings = new CameraSettings.Builder() + .setType(CameraType.CAMERA_FRONTFACE).build(); + uiSettings.setCameraSettings(cameraSettings); + } + + if (uiSettings instanceof BeepSoundUIOptions) { + boolean enableBeep = jsonUISettings.optBoolean("enableBeep", false); + if (enableBeep) { + FakeR fakeR = new FakeR(context); + ((BeepSoundUIOptions) uiSettings).setBeepSoundResourceID(fakeR.getId("raw", "beep")); + } + } + } +} \ No newline at end of file diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/BlinkIdOverlaySettingsSerialization.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/BlinkIdOverlaySettingsSerialization.java index 60eccb2..77c7141 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/BlinkIdOverlaySettingsSerialization.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/BlinkIdOverlaySettingsSerialization.java @@ -8,6 +8,7 @@ import com.microblink.uisettings.UISettings; import com.microblink.plugins.cordova.overlays.OverlaySettingsSerialization; import com.microblink.plugins.cordova.SerializationUtils; +import com.microblink.plugins.cordova.overlays.OverlaySerializationUtils; import org.json.JSONObject; @@ -18,6 +19,8 @@ public final class BlinkIdOverlaySettingsSerialization implements OverlaySetting public UISettings createUISettings(Context context, JSONObject jsonUISettings, RecognizerBundle recognizerBundle) { BlinkIdUISettings settings = new BlinkIdUISettings(recognizerBundle); + OverlaySerializationUtils.prepareCommonUiSettings(context, jsonUISettings, settings); + boolean requireDocumentSidesDataMatch = jsonUISettings.optBoolean("requireDocumentSidesDataMatch", true); settings.setDocumentDataMatchRequired(requireDocumentSidesDataMatch); diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentOverlaySettingsSerialization.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentOverlaySettingsSerialization.java index cb2a44b..050a019 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentOverlaySettingsSerialization.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentOverlaySettingsSerialization.java @@ -6,14 +6,16 @@ import com.microblink.uisettings.DocumentUISettings; import com.microblink.uisettings.UISettings; import com.microblink.plugins.cordova.overlays.OverlaySettingsSerialization; +import com.microblink.plugins.cordova.overlays.OverlaySerializationUtils; import org.json.JSONObject; public final class DocumentOverlaySettingsSerialization implements OverlaySettingsSerialization { @Override public UISettings createUISettings(Context context, JSONObject jsonUISettings, RecognizerBundle recognizerBundle) { - // no settings deserialized at the moment - return new DocumentUISettings(recognizerBundle); + DocumentUISettings settings = new DocumentUISettings(recognizerBundle); + OverlaySerializationUtils.prepareCommonUiSettings(context, jsonUISettings, settings); + return settings; } @Override diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentVerificationOverlaySettingsSerialization.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentVerificationOverlaySettingsSerialization.java index b6aa517..fcb8de7 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentVerificationOverlaySettingsSerialization.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/overlays/serialization/DocumentVerificationOverlaySettingsSerialization.java @@ -7,6 +7,7 @@ import com.microblink.uisettings.DocumentVerificationUISettings; import com.microblink.uisettings.UISettings; import com.microblink.plugins.cordova.overlays.OverlaySettingsSerialization; +import com.microblink.plugins.cordova.overlays.OverlaySerializationUtils; import org.json.JSONObject; @@ -17,6 +18,8 @@ public final class DocumentVerificationOverlaySettingsSerialization implements O public UISettings createUISettings(Context context, JSONObject jsonUISettings, RecognizerBundle recognizerBundle) { DocumentVerificationUISettings settings = new DocumentVerificationUISettings(recognizerBundle); + OverlaySerializationUtils.prepareCommonUiSettings(context, jsonUISettings, settings); + DocumentVerificationOverlayStrings.Builder overlasStringsBuilder = new DocumentVerificationOverlayStrings.Builder(context); String firstSideSplashMessage = getStringFromJSONObject(jsonUISettings, "firstSideSplashMessage"); if (firstSideSplashMessage != null) { diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java index abf5c8c..b659142 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java @@ -24,7 +24,7 @@ public Recognizer createRecognizer(JSONObject jsonObject) { recognizer.setReturnFaceImage(jsonObject.optBoolean("returnFaceImage", false)); recognizer.setReturnFullDocumentImage(jsonObject.optBoolean("returnFullDocumentImage", false)); recognizer.setReturnSignatureImage(jsonObject.optBoolean("returnSignatureImage", false)); - recognizer.setScanCroppedDocumentImage(jsonObject.optBoolean("scanCroppedDocumentImage", true)); + recognizer.setScanCroppedDocumentImage(jsonObject.optBoolean("scanCroppedDocumentImage", false)); recognizer.setSignResult(jsonObject.optBoolean("signResult", false)); recognizer.setSignatureImageDpi(jsonObject.optInt("signatureImageDpi", 250)); recognizer.setSkipUnsupportedBack(jsonObject.optBoolean("skipUnsupportedBack", false)); diff --git a/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdRecognizerSerialization.java b/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdRecognizerSerialization.java index 13ed83e..a5c3144 100644 --- a/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/microblink/plugins/cordova/recognizers/serialization/BlinkIdRecognizerSerialization.java @@ -24,7 +24,7 @@ public Recognizer createRecognizer(JSONObject jsonObject) { recognizer.setReturnFaceImage(jsonObject.optBoolean("returnFaceImage", false)); recognizer.setReturnFullDocumentImage(jsonObject.optBoolean("returnFullDocumentImage", false)); recognizer.setReturnSignatureImage(jsonObject.optBoolean("returnSignatureImage", false)); - recognizer.setScanCroppedDocumentImage(jsonObject.optBoolean("scanCroppedDocumentImage", true)); + recognizer.setScanCroppedDocumentImage(jsonObject.optBoolean("scanCroppedDocumentImage", false)); recognizer.setSignatureImageDpi(jsonObject.optInt("signatureImageDpi", 250)); recognizer.setValidateResultCharacters(jsonObject.optBoolean("validateResultCharacters", true)); return recognizer; diff --git a/BlinkID/src/android/libBlinkID.gradle b/BlinkID/src/android/libBlinkID.gradle index ffffb26..e66bfb2 100644 --- a/BlinkID/src/android/libBlinkID.gradle +++ b/BlinkID/src/android/libBlinkID.gradle @@ -6,7 +6,7 @@ repositories { } dependencies { - implementation('com.microblink:blinkid:5.10.0@aar') { + implementation('com.microblink:blinkid:5.11.0@aar') { transitive = true } } diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index 2b69977..d345584 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -369,7 +369,10 @@ BlinkID.prototype.RecognitionMode = Object.freeze( PhotoId: 5, /** Detailed document recognition. */ - FullRecognition: 6 + FullRecognition: 6, + + /** Recognition of barcode document. */ + BarcodeId: 7 } ); @@ -740,7 +743,34 @@ BlinkID.prototype.Region = Object.freeze( Michoacan: 79, NewYorkCity: 80, Tamaulipas: 81, - Veracruz: 82 + Veracruz: 82, + Chiapas: 83, + Coahuila: 84, + Durango: 85, + GuerreroCocula: 86, + GuerreroJuchitan: 87, + GuerreroTepecoacuilco: 88, + GuerreroTlacoapa: 89, + Gujarat: 90, + Hidalgo: 91, + Karnataka: 92, + Kerala: 93, + KhyberPakhtunkhwa: 94, + MadhyaPradesh: 95, + Maharashtra: 96, + Morelos: 97, + Nayarit: 98, + Oaxaca: 99, + Puebla: 100, + Punjab: 101, + Queretaro: 102, + SanLuisPotosi: 103, + Sinaloa: 104, + Sonora: 105, + Tabasco: 106, + TamilNadu: 107, + Yucatan: 108, + Zacatecas: 109 } ); @@ -785,7 +815,17 @@ BlinkID.prototype.Type = Object.freeze( ProfessionalDl: 34, TaxId: 35, WeaponPermit: 36, - Visa: 37 + Visa: 37, + BorderCrossingCard: 38, + DriverCard: 39, + GlobalEntryCard: 40, + Mypolis: 41, + NexusCard: 42, + PassportCard: 43, + ProofOfAgeCard: 44, + RefugeeId: 45, + TribalId: 46, + VeteranId: 47 } ); @@ -2083,6 +2123,8 @@ function RecognitionModeFilter() { this.enableMrzPassport = true; /** Enable scanning of Photo ID. Setting is taken into account only if the photo_id right is purchased. */ this.enablePhotoId = true; + /** Enable scanning of barcode IDs. Setting is taken into account only if the barcode right to scan that barcode is purchased. */ + this.enableBarcodeId = true; /** Enable full document recognition. Setting is taken into account only if the document right to scan that document is purchased. */ this.enableFullDocumentRecognition = true; } @@ -2097,6 +2139,15 @@ BlinkID.prototype.RecognitionModeFilter = RecognitionModeFilter; function OverlaySettings(overlaySettingsType) { /** type of the overlay settings object */ this.overlaySettingsType = overlaySettingsType; + + /** + * Whether beep sound will be played on successful scan. + */ + this.enableBeep = false; + /** + * Whether front camera should be used instead of the default camera. + */ + this.useFrontCamera = false; } /** * Class for setting up document overlay. @@ -2304,7 +2355,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The additional address information of the document owner. + * The additional name information of the document owner. */ this.additionalAddressInformation = nativeResult.additionalAddressInformation; @@ -2320,28 +2371,26 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { /** * 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; /** - * Defines possible color and moire statuses determined from scanned back image. + * Image analysis result for the scanned document back side image */ this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; /** - * Defines the data extracted from the back side visual inspection zone. + * The data extracted from the back side visual inspection zone. */ this.backVizResult = nativeResult.backVizResult; /** - * Defines the data extracted from the barcode. + * The data extracted from the barcode. */ this.barcodeResult = nativeResult.barcodeResult; /** - * The classification information. + * The document class information. */ this.classInfo = nativeResult.classInfo; @@ -2366,12 +2415,12 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * Defines digital signature of recognition results. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Version of the digital signature. Available only if enabled with signResult property. + * Defines digital signature version. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; @@ -2381,10 +2430,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; /** - * Returns DataMatchResultSuccess if data from scanned parts/sides of the document match, - * DataMatchResultFailed 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 DataMatchResultFailed. Result will - * be DataMatchResultSuccess only if scanned values for all fields that are compared are the same. + * Defines result of the data matching algorithm for scanned parts/sides of the document. */ this.documentDataMatch = nativeResult.documentDataMatch; @@ -2410,17 +2456,11 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current - * time on the device with the date of expiry. - * - * @return true if the document has expired, false in following cases: - * document does not expire (date of expiry is permanent) - * date of expiry has passed - * date of expiry is unknown and it is not permanent */ this.expired = nativeResult.expired; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -2430,22 +2470,22 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * Defines possible color and moire statuses determined from scanned front image. + * Image analysis result for the scanned document front side image */ this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; /** - * Defines the data extracted from the front side visual inspection zone. + * The data extracted from the front side visual inspection zone. */ this.frontVizResult = nativeResult.frontVizResult; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Back side image of the document */ this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * Front side image of the document */ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; @@ -2475,7 +2515,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.maritalStatus = nativeResult.maritalStatus; /** - * The data extracted from the machine readable zone + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -2495,7 +2535,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.placeOfBirth = nativeResult.placeOfBirth; /** - * Defines status of the last recognition process. + * Status of the last recognition process. */ this.processingStatus = nativeResult.processingStatus; @@ -2525,8 +2565,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { 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. + * {true} if recognizer has finished scanning first side and is now scanning back side, */ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; @@ -2536,7 +2575,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -2547,137 +2586,93 @@ BlinkIdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.BlinkIdCombinedRecognizerResult = BlinkIdCombinedRecognizerResult; /** - * Recognizer which can scan front and back side of the United States driver license. + * A generic recognizer which can scan front and back side of the document. */ function BlinkIdCombinedRecognizer() { Recognizer.call(this, 'BlinkIdCombinedRecognizer'); /** - * Defines whether blured frames filtering is allowed - * - * + * Defines whether blured frames filtering is allowed. */ this.allowBlurFilter = true; /** - * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed - * - * + * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. */ this.allowUnparsedMrzResults = false; /** - * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed - * Unverified MRZ is parsed, but check digits are incorrect - * - * + * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. */ this.allowUnverifiedMrzResults = true; /** - * Defines whether sensitive data should be removed from images, result fields or both. - * The setting only applies to certain documents - * - * + * Whether sensitive data should be removed from images, result fields or both. */ this.anonymizationMode = AnonymizationMode.FullResult; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case - * padding edge and image edge are the same. - * Recommended value is 0.02f. - * - * + * Padding is a minimum distance from the edge of the frame and it is defined */ this.paddingEdge = 0.0; /** - * Enable or disable recognition of specific document groups supported by the current license. - * - * + * Currently set recognition mode filter. */ this.recognitionModeFilter = new RecognitionModeFilter(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = false; /** * Configure the recognizer to only work on already cropped and dewarped images. - * This only works for still images - video feeds will ignore this setting. - * - * */ this.scanCroppedDocumentImage = false; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for signature image that should be returned. */ this.signatureImageDpi = 250; /** - * Skip back side capture and processing step when back side of the document is not supported - * - * + * Skip back side capture and processing step when back side of the document is not supported. */ this.skipUnsupportedBack = false; /** - * Defines whether result characters validatation is performed. - * If a result member contains invalid character, the result state cannot be valid - * - * + * Whether result characters validatation is performed. */ this.validateResultCharacters = true; @@ -2696,7 +2691,7 @@ function BlinkIdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The additional address information of the document owner. + * The additional name information of the document owner. */ this.additionalAddressInformation = nativeResult.additionalAddressInformation; @@ -2712,18 +2707,16 @@ function BlinkIdRecognizerResult(nativeResult) { /** * 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; /** - * Defines the data extracted from the barcode. + * The data extracted from the barcode. */ this.barcodeResult = nativeResult.barcodeResult; /** - * The classification information. + * The document class information. */ this.classInfo = nativeResult.classInfo; @@ -2774,17 +2767,11 @@ function BlinkIdRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current - * time on the device with the date of expiry. - * - * @return true if the document has expired, false in following cases: - * document does not expire (date of expiry is permanent) - * date of expiry has passed - * date of expiry is unknown and it is not permanent */ this.expired = nativeResult.expired; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -2794,7 +2781,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -2804,7 +2791,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.fullName = nativeResult.fullName; /** - * Defines possible color and moire statuses determined from scanned image. + * Image analysis result for the scanned document image */ this.imageAnalysisResult = nativeResult.imageAnalysisResult; @@ -2829,7 +2816,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.maritalStatus = nativeResult.maritalStatus; /** - * The data extracted from the machine readable zone + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -2849,7 +2836,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.placeOfBirth = nativeResult.placeOfBirth; /** - * Defines status of the last recognition process. + * Status of the last recognition process. */ this.processingStatus = nativeResult.processingStatus; @@ -2884,12 +2871,12 @@ function BlinkIdRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * Defines the data extracted from the visual inspection zone + * The data extracted from the visual inspection zone. */ this.vizResult = nativeResult.vizResult; @@ -2900,123 +2887,83 @@ BlinkIdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.e BlinkID.prototype.BlinkIdRecognizerResult = BlinkIdRecognizerResult; /** - * The Blink ID Recognizer is used for scanning Blink ID. + * Generic BlinkID recognizer. */ function BlinkIdRecognizer() { Recognizer.call(this, 'BlinkIdRecognizer'); /** - * Defines whether blured frames filtering is allowed - * - * + * Defines whether blured frames filtering is allowed" */ this.allowBlurFilter = true; /** - * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed - * - * + * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. */ this.allowUnparsedMrzResults = false; /** - * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed - * Unverified MRZ is parsed, but check digits are incorrect - * - * + * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. */ this.allowUnverifiedMrzResults = true; /** - * Defines whether sensitive data should be removed from images, result fields or both. - * The setting only applies to certain documents - * - * + * Whether sensitive data should be removed from images, result fields or both. */ this.anonymizationMode = AnonymizationMode.FullResult; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case - * padding edge and image edge are the same. - * Recommended value is 0.02f. - * - * + * Padding is a minimum distance from the edge of the frame and it is defined */ this.paddingEdge = 0.0; /** - * Enable or disable recognition of specific document groups supported by the current license. - * - * + * Currently set recognition mode filter. */ this.recognitionModeFilter = new RecognitionModeFilter(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = false; /** * Configure the recognizer to only work on already cropped and dewarped images. - * This only works for still images - video feeds will ignore this setting. - * - * */ this.scanCroppedDocumentImage = false; /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for signature image that should be returned. */ this.signatureImageDpi = 250; /** - * Defines whether result characters validatation is performed. - * If a result member contains invalid character, the result state cannot be valid - * - * + * Whether result characters validatation is performed. */ this.validateResultCharacters = true; @@ -3035,22 +2982,22 @@ function DocumentFaceRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Quadrangle represeting corner points of the document within the input image. + * The location of document detection in coordinate system of full input frame. */ this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * Quadrangle represeting corner points of the face image within the input image. + * The location of face detection in coordinate system of cropped full document image. */ this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3061,65 +3008,43 @@ DocumentFaceRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.DocumentFaceRecognizerResult = DocumentFaceRecognizerResult; /** - * Class for configuring Document Face Recognizer Recognizer. - * - * Document Face Recognizer recognizer is used for scanning documents containing face images. + * Recognizer for detecting holder's photo on documents containing image. */ function DocumentFaceRecognizer() { Recognizer.call(this, 'DocumentFaceRecognizer'); /** - * Type of docment this recognizer will scan. - * - * + * Currently used detector type. */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines how many times the same document should be detected before the detector - * returns this document as a result of the deteciton - * - * Higher number means more reliable detection, but slower processing - * - * + * Minimum number of stable detections required for detection to be successful. */ this.numStableDetectionsThreshold = 6; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -3149,15 +3074,11 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * 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; /** - * Type of the barcode scanned - * - * @return Type of the barcode + * The format of the scanned barcode. */ this.barcodeType = nativeResult.barcodeType; @@ -3193,8 +3114,6 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * The document type deduced from the recognized barcode - * - * @return Type of the document */ this.documentType = nativeResult.documentType; @@ -3210,19 +3129,11 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current - * time on the device with the date of expiry. - * - * @return true if the document has expired, false in following cases: - * document does not expire (date of expiry is permanent) - * date of expiry has passed - * date of expiry is unknown and it is not permanent */ 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; @@ -3292,7 +3203,7 @@ function IdBarcodeRecognizerResult(nativeResult) { this.race = nativeResult.race; /** - * Byte array with result of the scan + * The raw bytes contained inside barcode. */ this.rawData = nativeResult.rawData; @@ -3302,7 +3213,7 @@ function IdBarcodeRecognizerResult(nativeResult) { this.religion = nativeResult.religion; /** - * The residential stauts of the document owner. + * The residential status of the document owner. */ this.residentialStatus = nativeResult.residentialStatus; @@ -3322,13 +3233,12 @@ function IdBarcodeRecognizerResult(nativeResult) { this.street = nativeResult.street; /** - * Retrieves string content of scanned data + * String representation of data inside barcode. */ this.stringData = nativeResult.stringData; /** - * Flag indicating uncertain scanning data - * E.g obtained from damaged barcode. + * True if returned result is uncertain, i.e. if scanned barcode was incomplete (i.e. */ this.uncertain = nativeResult.uncertain; @@ -3364,46 +3274,42 @@ function MrtdCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * Defines digital signature of recognition results. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Version of the digital signature. Available only if enabled with signResult property. + * Defines digital signature version. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Returns DataMatchResultSuccess if data from scanned parts/sides of the document match, - * DataMatchResultFailed 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 DataMatchResultFailed. Result will - * be DataMatchResultSuccess only if scanned values for all fields that are compared are the same. + * Defines result of the data matching algorithm for scanned parts/sides of the document. */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Back side image of the document */ this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * Front side image of the document */ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** - * Returns the Data extracted from the machine readable zone. + * The data extracted from the machine readable zone. */ 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. + * {true} if recognizer has finished scanning first side and is now scanning back side, */ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; @@ -3414,94 +3320,64 @@ MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.MrtdCombinedRecognizerResult = MrtdCombinedRecognizerResult; /** - * MRTD Combined recognizer - * - * MRTD Combined recognizer is used for scanning both front and back side of generic IDs. + * Recognizer for combined reading of face from front side of documents and MRZ from back side of + * * Machine Readable Travel Document. */ function MrtdCombinedRecognizer() { Recognizer.call(this, 'MrtdCombinedRecognizer'); /** - * Whether special characters are allowed - * - * + * Whether special characters are allowed. */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed - * - * + * Whether returning of unparsed results is allowed. */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Whether returning of unverified results is allowed. */ this.allowUnverifiedResults = false; /** - * Type of document this recognizer will scan. - * - * + * Currently used detector type. */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines how many times the same document should be detected before the detector - * returns this document as a result of the deteciton - * - * Higher number means more reliable detection, but slower processing - * - * + * Minimum number of stable detections required for detection to be successful. */ this.numStableDetectionsThreshold = 6; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -3520,12 +3396,12 @@ function MrtdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Returns the Data extracted from the machine readable zone. + * The Data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -3536,60 +3412,43 @@ MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empt BlinkID.prototype.MrtdRecognizerResult = MrtdRecognizerResult; /** - * Recognizer that can recognizer Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) + * Recognizer that can recognize Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) */ function MrtdRecognizer() { Recognizer.call(this, 'MrtdRecognizer'); /** - * Whether special characters are allowed - * - * + * Whether special characters are allowed. */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed - * - * + * Whether returning of unparsed results is allowed. */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Whether returning of unverified results is allowed. */ this.allowUnverifiedResults = false; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -3608,22 +3467,22 @@ function PassportRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * Defines digital signature of recognition results. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Version of the digital signature. Available only if enabled with signResult property. + * Defines digital signature version. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3645,61 +3504,42 @@ function PassportRecognizer() { Recognizer.call(this, 'PassportRecognizer'); /** - * Defines whether to anonymize Netherlands MRZ - * - * + * Defines whether the Netherlands MRZ should be anonymized. */ this.anonymizeNetherlandsMrz = true; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -3718,12 +3558,12 @@ function VisaRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3745,47 +3585,32 @@ function VisaRecognizer() { Recognizer.call(this, 'VisaRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; From f6dff36c3d3c20e238e16fcf8eaee4b2e1ab2e15 Mon Sep 17 00:00:00 2001 From: Ivan Grce Date: Tue, 13 Apr 2021 10:25:51 +0200 Subject: [PATCH 3/6] [android] updated sample license key --- sample_files/www/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_files/www/js/index.js b/sample_files/www/js/index.js index 319fe85..4ffdf45 100644 --- a/sample_files/www/js/index.js +++ b/sample_files/www/js/index.js @@ -77,7 +77,7 @@ var app = { // package name/bundleID com.microblink.sample var licenseKeys = { - android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdZhZkGlTu9U3PWNHZAAPMfggO8eqRqstS/pzAj03JIRM4oKtZHC3x01wMUK/j4ZjCEdfIGTcuaz8sIaJY3rE/o43J+8GQMgTkoKu3qCjqowrQgNT6JqiD7Vkth1TDhdjv3bJq5BmewGdyJzVnT8yk+wCV8XBqqY4dJozSfZRgmgAp2O/WnXfveCTpHqnHjH50fCLTgertIHJs6ekk8FxHtWKkoiXixZnkLppqxjn1bc4l51VAaXaf+HhlAYSYVgQZJpk+n8CtNfemcGHw4sNq2xYGQ1o4cZVjhJEOCuP3PeujhkDHtfD42bu2dJVXPQUoj6eCnw=', + android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdZhZkGlTu9U3ORtDZCu0vFoxWJyF0dnv88NTiJO9pmEXPFZB9pVlO146QMSXVLAnYzACtQkatIeij7DU7ncIxLPulqRre/pOorG7HaWypuPGrotFAut0fJMJSckpf7QQC5N/97MV4Mdjk/JA6zeC83V0JqSEIMBisJRSeL4H1BqrcrDqhZpMjddPQQ+e8XVAmL2WxPsTubyqQDFvU6VSGE2nVIxbsXfpKApGRPSD7d+m46zsK6X86hMuMIu9sdtABD0AS0Bzm8HpaJZWkP51L6Ag9Dor9Iqluw0RTm+WgsQzycLBJ80iJwxryFiKOWtiPlvxQPAqn16CDT7J6h/z', ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP4FpSuS/38JVPZ6LMS08lcu81gG/oGTKny4tPf7qrukqKTjEn5zpgzJ+z8Qhf/DzQ+rgwne5bcqvcoqY9n4fo3osaFDX1BWka1tEEmpAAJzfiZJ3MtOzdOFqyuHybzz0DWj3kemWYgJeWFbRIYQGWV56Kig9qio3d1akBWMa1wOs2mUL5Oj2w6IHS1v5E78nnjxynAgVsGKI2TqPsZFjmXfdsxg7uVP3z8ZEDYO+rOhCH3AxCk5DG++7aXGZ8HijRmvDt7z/jQfYcAApgzTTA8dDjOJ5fhMxCOKkxyzr21KjaKhDevT6NZjxp5tmbsM5A8lZ' }; From 40775925bdb0f074d541939a1b3e5565f91d540d Mon Sep 17 00:00:00 2001 From: Ivan Grce Date: Tue, 13 Apr 2021 10:27:56 +0200 Subject: [PATCH 4/6] Updated version and release notes for v5.11.0 --- BlinkID/plugin.xml | 2 +- Release notes.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BlinkID/plugin.xml b/BlinkID/plugin.xml index 724b04b..cf9461b 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -2,7 +2,7 @@ + version="5.11.0"> BlinkIdScanner A small and powerful ID card scanning library diff --git a/Release notes.md b/Release notes.md index 4feb5ea..2526cda 100644 --- a/Release notes.md +++ b/Release notes.md @@ -1,3 +1,6 @@ +## 5.11.0 +- Updated to [Android SDK v5.11.0](https://github.com/BlinkID/blinkid-android/releases/tag/v5.11.0) and [iOS SDK v5.11.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v5.11.0) + ## 5.10.0 - Updated to [Android SDK v5.10.0](https://github.com/BlinkID/blinkid-android/releases/tag/v5.10.0) and [iOS SDK v5.10.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v5.10.0) From 55162ea65cc5fd30af2c38bfa7d1042b4f3916eb Mon Sep 17 00:00:00 2001 From: Mijo Gracanin Date: Mon, 19 Apr 2021 16:46:01 +0200 Subject: [PATCH 5/6] [iOS] Update interfaces and sample license for 5.11.0 --- .../src/ios/sources/CDVMicroblinkScanner.m | 2 +- .../ios/sources/MBBlinkIDSerializationUtils.h | 4 +- .../ios/sources/MBBlinkIDSerializationUtils.m | 3 +- .../ios/sources/MBCommonSerializationUtils.h | 4 +- .../ios/sources/MBCommonSerializationUtils.m | 2 +- .../src/ios/sources/MBSerializationUtils.h | 4 +- .../src/ios/sources/MBSerializationUtils.m | 2 +- .../Overlays/MBOverlaySerializationUtils.h | 4 +- .../Overlays/MBOverlaySerializationUtils.m | 2 +- .../Overlays/MBOverlaySettingsSerializers.h | 2 +- .../ios/sources/Overlays/MBOverlayVCCreator.h | 2 +- .../MBOverlayViewControllerDelegate.h | 2 +- .../MBBlinkIdOverlaySettingsSerialization.h | 2 +- .../MBBlinkIdOverlaySettingsSerialization.m | 2 +- .../MBDocumentOverlaySettingsSerialization.h | 2 +- .../MBDocumentOverlaySettingsSerialization.m | 2 +- ...VerificationOverlaySettingsSerialization.h | 2 +- ...VerificationOverlaySettingsSerialization.m | 2 +- .../Recognizers/MBRecognizerSerializers.h | 4 +- .../sources/Recognizers/MBRecognizerWrapper.h | 4 +- .../sources/Recognizers/MBRecognizerWrapper.m | 2 +- .../MBBlinkIdCombinedRecognizerWrapper.h | 2 +- .../Wrappers/MBBlinkIdRecognizerWrapper.h | 2 +- .../MBDocumentFaceRecognizerWrapper.h | 2 +- .../Wrappers/MBIdBarcodeRecognizerWrapper.h | 2 +- .../MBMrtdCombinedRecognizerWrapper.h | 2 +- .../Wrappers/MBMrtdRecognizerWrapper.h | 2 +- .../Wrappers/MBPassportRecognizerWrapper.h | 2 +- .../MBSuccessFrameGrabberRecognizerWrapper.h | 4 +- .../MBSuccessFrameGrabberRecognizerWrapper.m | 2 +- .../MBUsdlCombinedRecognizerWrapper.h | 2 +- .../MBUsdlCombinedRecognizerWrapper.m | 2 +- .../Wrappers/MBUsdlRecognizerWrapper.h | 4 +- .../Wrappers/MBUsdlRecognizerWrapper.m | 2 +- .../Wrappers/MBVisaRecognizerWrapper.h | 2 +- BlinkID/www/blinkIdScanner.js | 480 +++++++++++++----- sample_files/www/js/index.js | 2 +- 37 files changed, 398 insertions(+), 171 deletions(-) diff --git a/BlinkID/src/ios/sources/CDVMicroblinkScanner.m b/BlinkID/src/ios/sources/CDVMicroblinkScanner.m index 0ec6e48..8f8409b 100644 --- a/BlinkID/src/ios/sources/CDVMicroblinkScanner.m +++ b/BlinkID/src/ios/sources/CDVMicroblinkScanner.m @@ -25,7 +25,7 @@ #import "MBRecognizerWrapper.h" #import "MBSerializationUtils.h" -#import +#import const NSString *RESULT_LIST = @"resultList"; diff --git a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.h b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.h index 32bd25e..2af4851 100644 --- a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.h +++ b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.h @@ -5,7 +5,7 @@ // Created by DoDo on 04/06/2018. // -#import +#import #import @@ -22,4 +22,4 @@ +(NSDictionary * _Nonnull) serializeBarcodeElements:(MBBarcodeElements * _Nonnull)extendedElements; +(NSArray *) serializeBarcodeElementsValues:(MBBarcodeElements *)extendedElements; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m index 226fa21..2dac292 100644 --- a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m +++ b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m @@ -163,6 +163,7 @@ +(MBRecognitionModeFilter *) deserializeMBRecognitionModeFilter:(NSDictionary *) recognitionModeFilter.enableMrzVisa = [[jsonRecognitionModeFilter valueForKey:@"enableMrzVisa"] boolValue]; recognitionModeFilter.enableMrzPassport = [[jsonRecognitionModeFilter valueForKey:@"enableMrzPassport"] boolValue]; recognitionModeFilter.enablePhotoId = [[jsonRecognitionModeFilter valueForKey:@"enablePhotoId"] boolValue]; + recognitionModeFilter.enableBarcodeId = [[jsonRecognitionModeFilter valueForKey:@"enableBarcodeId"] boolValue]; recognitionModeFilter.enableFullDocumentRecognition = [[jsonRecognitionModeFilter valueForKey:@"enableFullDocumentRecognition"] boolValue]; return recognitionModeFilter; @@ -184,4 +185,4 @@ +(NSDictionary * _Nonnull) serializeBarcodeElements:(MBBarcodeElements * _Nonnul return fieldsArr; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/MBCommonSerializationUtils.h b/BlinkID/src/ios/sources/MBCommonSerializationUtils.h index 0baefba..d449daf 100644 --- a/BlinkID/src/ios/sources/MBCommonSerializationUtils.h +++ b/BlinkID/src/ios/sources/MBCommonSerializationUtils.h @@ -5,7 +5,7 @@ // Created by DoDo on 04/06/2018. // -#import +#import #import @@ -13,4 +13,4 @@ +(MBImageExtensionFactors) deserializeMBImageExtensionFactors:(NSDictionary * _Nullable)jsonExtensionFactors; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/MBCommonSerializationUtils.m b/BlinkID/src/ios/sources/MBCommonSerializationUtils.m index 6f7a3ee..f2933fa 100644 --- a/BlinkID/src/ios/sources/MBCommonSerializationUtils.m +++ b/BlinkID/src/ios/sources/MBCommonSerializationUtils.m @@ -22,4 +22,4 @@ +(MBImageExtensionFactors) deserializeMBImageExtensionFactors:(NSDictionary *)js ); } } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/MBSerializationUtils.h b/BlinkID/src/ios/sources/MBSerializationUtils.h index eedbf2d..3b9395e 100644 --- a/BlinkID/src/ios/sources/MBSerializationUtils.h +++ b/BlinkID/src/ios/sources/MBSerializationUtils.h @@ -5,7 +5,7 @@ // Created by DoDo on 01/06/2018. // -#import +#import #import @interface MBSerializationUtils : NSObject @@ -16,4 +16,4 @@ +(NSDictionary * _Nonnull)serializeCGPoint:(CGPoint) point; +(NSDictionary * _Nonnull) serializeMBQuadrangle:(MBQuadrangle * _Nonnull) quad; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/MBSerializationUtils.m b/BlinkID/src/ios/sources/MBSerializationUtils.m index 1630ede..df6f7a5 100644 --- a/BlinkID/src/ios/sources/MBSerializationUtils.m +++ b/BlinkID/src/ios/sources/MBSerializationUtils.m @@ -53,4 +53,4 @@ +(NSDictionary *) serializeMBQuadrangle:(MBQuadrangle *) quad { }; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.h b/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.h index 9f16c67..458292e 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.h +++ b/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.h @@ -6,11 +6,11 @@ // Copyright © 2018 Jura Skrlec. All rights reserved. // -#import +#import #import @interface MBOverlaySerializationUtils : NSObject +(void) extractCommonOverlaySettings:(NSDictionary *)jsonOverlaySettings overlaySettings:(MBOverlaySettings *)overlaySettings; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.m b/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.m index 781df5f..a4c99c2 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.m +++ b/BlinkID/src/ios/sources/Overlays/MBOverlaySerializationUtils.m @@ -39,4 +39,4 @@ +(void) extractCommonOverlaySettings:(NSDictionary *)jsonOverlaySettings overlay } } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.h b/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.h index 1bdbdcd..5bd5333 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.h +++ b/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.h @@ -7,7 +7,7 @@ #import "MBOverlayViewControllerDelegate.h" -#import +#import #import diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlayVCCreator.h b/BlinkID/src/ios/sources/Overlays/MBOverlayVCCreator.h index 16e4db1..0c785e3 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlayVCCreator.h +++ b/BlinkID/src/ios/sources/Overlays/MBOverlayVCCreator.h @@ -9,7 +9,7 @@ #import "MBOverlayViewControllerDelegate.h" -#import +#import #import @protocol MBOverlayVCCreator diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlayViewControllerDelegate.h b/BlinkID/src/ios/sources/Overlays/MBOverlayViewControllerDelegate.h index afe9f5d..7ef0725 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlayViewControllerDelegate.h +++ b/BlinkID/src/ios/sources/Overlays/MBOverlayViewControllerDelegate.h @@ -6,7 +6,7 @@ #pragma once -#import +#import @protocol MBOverlayViewControllerDelegate @required diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h index 5da5f46..9fd898d 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h @@ -11,4 +11,4 @@ @interface MBBlinkIdOverlaySettingsSerialization : NSObject -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m index f6f7967..fcad9f2 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m @@ -163,4 +163,4 @@ - (void)blinkIdOverlayViewControllerDidTapClose:(nonnull MBBlinkIdOverlayViewCon } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h index be41b3b..e5698f6 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h @@ -10,4 +10,4 @@ @interface MBDocumentOverlaySettingsSerialization : NSObject -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m index 54632c5..0a04bbb 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m @@ -40,4 +40,4 @@ - (void)documentOverlayViewControllerDidTapClose:(nonnull MBDocumentOverlayViewC [self.delegate overlayDidTapClose:documentOverlayViewController]; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h index d2ffb20..8aede65 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h @@ -11,4 +11,4 @@ @interface MBDocumentVerificationOverlaySettingsSerialization : NSObject -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m index 7f4783d..f8fe2d3 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m @@ -84,4 +84,4 @@ - (void)documentVerificationOverlayViewControllerDidTapClose:(nonnull MBDocument [self.delegate overlayDidTapClose:documentVerificationOverlayViewController]; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.h b/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.h index 81a7d3b..8c606c2 100644 --- a/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.h +++ b/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.h @@ -1,6 +1,6 @@ #import "MBRecognizerWrapper.h" -#import +#import #import @@ -11,4 +11,4 @@ -(MBRecognizerCollection *) deserializeRecognizerCollection:(NSDictionary *)jsonRecognizerCollection; -(id) recognizerCreatorForJson:(NSDictionary *)recognizerJson; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.h index 20d5045..f8d7a3a 100644 --- a/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.h @@ -7,7 +7,7 @@ #pragma once -#import +#import /** Object that knows how to create recognizer from JSON */ @protocol MBRecognizerCreator @@ -25,4 +25,4 @@ -(NSDictionary *) serializeResult; -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.m index 053ad72..c524fb2 100644 --- a/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/MBRecognizerWrapper.m @@ -17,4 +17,4 @@ -(NSDictionary *) serializeResult { return result; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h index dd998cd..b853900 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBBlinkIdCombinedRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h index 2c20aa8..50aeabc 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBBlinkIdRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h index af3cde5..8ce91ca 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBDocumentFaceRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBIdBarcodeRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBIdBarcodeRecognizerWrapper.h index 84aab31..a8b366b 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBIdBarcodeRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBIdBarcodeRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBIdBarcodeRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h index feb247e..de10cae 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBMrtdCombinedRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h index d9d3d2e..f425c42 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBMrtdRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.h index ac28fc5..7686375 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBPassportRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h index b4e19a3..2a9336b 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h @@ -7,8 +7,8 @@ // #import "MBRecognizerWrapper.h" -#import +#import @interface MBSuccessFrameGrabberRecognizerCreator : NSObject -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m index 70d7805..438113f 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m @@ -47,4 +47,4 @@ -(NSDictionary *) serializeResult { return jsonResult; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h index 5369606..f083369 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBUsdlCombinedRecognizerCreator : NSObject diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m index 5dbabc7..9392664 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m @@ -111,4 +111,4 @@ -(NSDictionary *) serializeResult { return fieldsArr; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h index 4d75de4..66f7263 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h @@ -1,6 +1,6 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBUsdlRecognizerCreator : NSObject -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m index bf4a5ee..dba28a8 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m @@ -87,4 +87,4 @@ -(NSDictionary *) serializeResult { return fieldsArr; } -@end +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.h index 903d5c1..04df86b 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.h +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.h @@ -1,5 +1,5 @@ #import "MBRecognizerWrapper.h" -#import +#import @interface MBVisaRecognizerCreator : NSObject diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index d345584..b0dd1a1 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -2355,7 +2355,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The additional name information of the document owner. + * The additional address information of the document owner. */ this.additionalAddressInformation = nativeResult.additionalAddressInformation; @@ -2371,26 +2371,28 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { /** * 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; /** - * Image analysis result for the scanned document back side image + * Defines possible color and moire statuses determined from scanned back image. */ this.backImageAnalysisResult = nativeResult.backImageAnalysisResult; /** - * The data extracted from the back side visual inspection zone. + * Defines the data extracted from the back side visual inspection zone. */ this.backVizResult = nativeResult.backVizResult; /** - * The data extracted from the barcode. + * Defines the data extracted from the barcode. */ this.barcodeResult = nativeResult.barcodeResult; /** - * The document class information. + * The classification information. */ this.classInfo = nativeResult.classInfo; @@ -2415,12 +2417,12 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * Defines digital signature of recognition results. + * Digital signature of the recognition result. Available only if enabled with signResult property. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Defines digital signature version. + * Version of the digital signature. Available only if enabled with signResult property. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; @@ -2430,7 +2432,10 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; /** - * Defines result of the data matching algorithm for scanned parts/sides of the document. + * Returns DataMatchResultSuccess if data from scanned parts/sides of the document match, + * DataMatchResultFailed 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 DataMatchResultFailed. Result will + * be DataMatchResultSuccess only if scanned values for all fields that are compared are the same. */ this.documentDataMatch = nativeResult.documentDataMatch; @@ -2456,11 +2461,17 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current + * time on the device with the date of expiry. + * + * @return true if the document has expired, false in following cases: + * document does not expire (date of expiry is permanent) + * date of expiry has passed + * date of expiry is unknown and it is not permanent */ this.expired = nativeResult.expired; /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; @@ -2470,22 +2481,22 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * Image analysis result for the scanned document front side image + * Defines possible color and moire statuses determined from scanned front image. */ this.frontImageAnalysisResult = nativeResult.frontImageAnalysisResult; /** - * The data extracted from the front side visual inspection zone. + * Defines the data extracted from the front side visual inspection zone. */ this.frontVizResult = nativeResult.frontVizResult; /** - * Back side image of the document + * back side image of the document if enabled with returnFullDocumentImage property. */ this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * Front side image of the document + * front side image of the document if enabled with returnFullDocumentImage property. */ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; @@ -2515,7 +2526,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.maritalStatus = nativeResult.maritalStatus; /** - * The data extracted from the machine readable zone. + * The data extracted from the machine readable zone */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -2535,7 +2546,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.placeOfBirth = nativeResult.placeOfBirth; /** - * Status of the last recognition process. + * Defines status of the last recognition process. */ this.processingStatus = nativeResult.processingStatus; @@ -2565,7 +2576,8 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.residentialStatus = nativeResult.residentialStatus; /** - * {true} if recognizer has finished scanning first side and is now scanning back side, + * 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; @@ -2575,7 +2587,7 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * Signature image from the document + * image of the signature if enabled with returnSignatureImage property. */ this.signatureImage = nativeResult.signatureImage; @@ -2586,93 +2598,137 @@ BlinkIdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.BlinkIdCombinedRecognizerResult = BlinkIdCombinedRecognizerResult; /** - * A generic recognizer which can scan front and back side of the document. + * Recognizer which can scan front and back side of the United States driver license. */ function BlinkIdCombinedRecognizer() { Recognizer.call(this, 'BlinkIdCombinedRecognizer'); /** - * Defines whether blured frames filtering is allowed. + * Defines whether blured frames filtering is allowed + * + * */ this.allowBlurFilter = true; /** - * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. + * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed + * + * */ this.allowUnparsedMrzResults = false; /** - * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. + * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed + * Unverified MRZ is parsed, but check digits are incorrect + * + * */ this.allowUnverifiedMrzResults = true; /** - * Whether sensitive data should be removed from images, result fields or both. + * Defines whether sensitive data should be removed from images, result fields or both. + * The setting only applies to certain documents + * + * */ this.anonymizationMode = AnonymizationMode.FullResult; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Padding is a minimum distance from the edge of the frame and it is defined + * Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case + * padding edge and image edge are the same. + * Recommended value is 0.02f. + * + * */ this.paddingEdge = 0.0; /** - * Currently set recognition mode filter. + * Enable or disable recognition of specific document groups supported by the current license. + * + * */ this.recognitionModeFilter = new RecognitionModeFilter(); /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; /** - * Defines whether signature image will be available in result. + * Sets whether signature image from ID card should be extracted. + * + * */ this.returnSignatureImage = false; /** * Configure the recognizer to only work on already cropped and dewarped images. + * This only works for still images - video feeds will ignore this setting. + * + * */ this.scanCroppedDocumentImage = false; /** - * Defines whether or not recognition result should be signed. + * Whether or not recognition result should be signed. + * + * */ this.signResult = false; /** - * The DPI (Dots Per Inch) for signature image that should be returned. + * Property for setting DPI for signature images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.signatureImageDpi = 250; /** - * Skip back side capture and processing step when back side of the document is not supported. + * Skip back side capture and processing step when back side of the document is not supported + * + * */ this.skipUnsupportedBack = false; /** - * Whether result characters validatation is performed. + * Defines whether result characters validatation is performed. + * If a result member contains invalid character, the result state cannot be valid + * + * */ this.validateResultCharacters = true; @@ -2691,7 +2747,7 @@ function BlinkIdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The additional name information of the document owner. + * The additional address information of the document owner. */ this.additionalAddressInformation = nativeResult.additionalAddressInformation; @@ -2707,16 +2763,18 @@ function BlinkIdRecognizerResult(nativeResult) { /** * 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; /** - * The data extracted from the barcode. + * Defines the data extracted from the barcode. */ this.barcodeResult = nativeResult.barcodeResult; /** - * The document class information. + * The classification information. */ this.classInfo = nativeResult.classInfo; @@ -2767,11 +2825,17 @@ function BlinkIdRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current + * time on the device with the date of expiry. + * + * @return true if the document has expired, false in following cases: + * document does not expire (date of expiry is permanent) + * date of expiry has passed + * date of expiry is unknown and it is not permanent */ this.expired = nativeResult.expired; /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; @@ -2781,7 +2845,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * Image of the full document + * full document image if enabled with returnFullDocumentImage property. */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -2791,7 +2855,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.fullName = nativeResult.fullName; /** - * Image analysis result for the scanned document image + * Defines possible color and moire statuses determined from scanned image. */ this.imageAnalysisResult = nativeResult.imageAnalysisResult; @@ -2816,7 +2880,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.maritalStatus = nativeResult.maritalStatus; /** - * The data extracted from the machine readable zone. + * The data extracted from the machine readable zone */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -2836,7 +2900,7 @@ function BlinkIdRecognizerResult(nativeResult) { this.placeOfBirth = nativeResult.placeOfBirth; /** - * Status of the last recognition process. + * Defines status of the last recognition process. */ this.processingStatus = nativeResult.processingStatus; @@ -2871,12 +2935,12 @@ function BlinkIdRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * Signature image from the document + * image of the signature if enabled with returnSignatureImage property. */ this.signatureImage = nativeResult.signatureImage; /** - * The data extracted from the visual inspection zone. + * Defines the data extracted from the visual inspection zone */ this.vizResult = nativeResult.vizResult; @@ -2887,83 +2951,123 @@ BlinkIdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.e BlinkID.prototype.BlinkIdRecognizerResult = BlinkIdRecognizerResult; /** - * Generic BlinkID recognizer. + * The Blink ID Recognizer is used for scanning Blink ID. */ function BlinkIdRecognizer() { Recognizer.call(this, 'BlinkIdRecognizer'); /** - * Defines whether blured frames filtering is allowed" + * Defines whether blured frames filtering is allowed + * + * */ this.allowBlurFilter = true; /** - * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. + * Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed + * + * */ this.allowUnparsedMrzResults = false; /** - * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. + * Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed + * Unverified MRZ is parsed, but check digits are incorrect + * + * */ this.allowUnverifiedMrzResults = true; /** - * Whether sensitive data should be removed from images, result fields or both. + * Defines whether sensitive data should be removed from images, result fields or both. + * The setting only applies to certain documents + * + * */ this.anonymizationMode = AnonymizationMode.FullResult; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Padding is a minimum distance from the edge of the frame and it is defined + * Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case + * padding edge and image edge are the same. + * Recommended value is 0.02f. + * + * */ this.paddingEdge = 0.0; /** - * Currently set recognition mode filter. + * Enable or disable recognition of specific document groups supported by the current license. + * + * */ this.recognitionModeFilter = new RecognitionModeFilter(); /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; /** - * Defines whether signature image will be available in result. + * Sets whether signature image from ID card should be extracted. + * + * */ this.returnSignatureImage = false; /** * Configure the recognizer to only work on already cropped and dewarped images. + * This only works for still images - video feeds will ignore this setting. + * + * */ this.scanCroppedDocumentImage = false; /** - * The DPI (Dots Per Inch) for signature image that should be returned. + * Property for setting DPI for signature images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.signatureImageDpi = 250; /** - * Whether result characters validatation is performed. + * Defines whether result characters validatation is performed. + * If a result member contains invalid character, the result state cannot be valid + * + * */ this.validateResultCharacters = true; @@ -2982,22 +3086,22 @@ function DocumentFaceRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The location of document detection in coordinate system of full input frame. + * Quadrangle represeting corner points of the document within the input image. */ this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; /** - * The location of face detection in coordinate system of cropped full document image. + * Quadrangle represeting corner points of the face image within the input image. */ this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; /** - * Image of the full document + * full document image if enabled with returnFullDocumentImage property. */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3008,43 +3112,65 @@ DocumentFaceRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.DocumentFaceRecognizerResult = DocumentFaceRecognizerResult; /** - * Recognizer for detecting holder's photo on documents containing image. + * Class for configuring Document Face Recognizer Recognizer. + * + * Document Face Recognizer recognizer is used for scanning documents containing face images. */ function DocumentFaceRecognizer() { Recognizer.call(this, 'DocumentFaceRecognizer'); /** - * Currently used detector type. + * Type of docment this recognizer will scan. + * + * */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Minimum number of stable detections required for detection to be successful. + * Defines how many times the same document should be detected before the detector + * returns this document as a result of the deteciton + * + * Higher number means more reliable detection, but slower processing + * + * */ this.numStableDetectionsThreshold = 6; /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; @@ -3074,11 +3200,15 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * 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; /** - * The format of the scanned barcode. + * Type of the barcode scanned + * + * @return Type of the barcode */ this.barcodeType = nativeResult.barcodeType; @@ -3114,6 +3244,8 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * The document type deduced from the recognized barcode + * + * @return Type of the document */ this.documentType = nativeResult.documentType; @@ -3129,11 +3261,19 @@ function IdBarcodeRecognizerResult(nativeResult) { /** * Checks whether the document has expired or not by comparing the current + * time on the device with the date of expiry. + * + * @return true if the document has expired, false in following cases: + * document does not expire (date of expiry is permanent) + * date of expiry has passed + * date of expiry is unknown and it is not permanent */ 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; @@ -3203,7 +3343,7 @@ function IdBarcodeRecognizerResult(nativeResult) { this.race = nativeResult.race; /** - * The raw bytes contained inside barcode. + * Byte array with result of the scan */ this.rawData = nativeResult.rawData; @@ -3213,7 +3353,7 @@ function IdBarcodeRecognizerResult(nativeResult) { this.religion = nativeResult.religion; /** - * The residential status of the document owner. + * The residential stauts of the document owner. */ this.residentialStatus = nativeResult.residentialStatus; @@ -3233,12 +3373,13 @@ function IdBarcodeRecognizerResult(nativeResult) { this.street = nativeResult.street; /** - * String representation of data inside barcode. + * Retrieves string content of scanned data */ this.stringData = nativeResult.stringData; /** - * True if returned result is uncertain, i.e. if scanned barcode was incomplete (i.e. + * Flag indicating uncertain scanning data + * E.g obtained from damaged barcode. */ this.uncertain = nativeResult.uncertain; @@ -3274,42 +3415,46 @@ function MrtdCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Defines digital signature of recognition results. + * Digital signature of the recognition result. Available only if enabled with signResult property. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Defines digital signature version. + * Version of the digital signature. Available only if enabled with signResult property. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Defines result of the data matching algorithm for scanned parts/sides of the document. + * Returns DataMatchResultSuccess if data from scanned parts/sides of the document match, + * DataMatchResultFailed 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 DataMatchResultFailed. Result will + * be DataMatchResultSuccess only if scanned values for all fields that are compared are the same. */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; /** - * Back side image of the document + * back side image of the document if enabled with returnFullDocumentImage property. */ this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * Front side image of the document + * front side image of the document if enabled with returnFullDocumentImage property. */ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** - * The data extracted from the machine readable zone. + * Returns the Data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * {true} if recognizer has finished scanning first side and is now scanning back side, + * 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; @@ -3320,64 +3465,94 @@ MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.MrtdCombinedRecognizerResult = MrtdCombinedRecognizerResult; /** - * Recognizer for combined reading of face from front side of documents and MRZ from back side of - * * Machine Readable Travel Document. + * MRTD Combined recognizer + * + * MRTD Combined recognizer is used for scanning both front and back side of generic IDs. */ function MrtdCombinedRecognizer() { Recognizer.call(this, 'MrtdCombinedRecognizer'); /** - * Whether special characters are allowed. + * Whether special characters are allowed + * + * */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed. + * Whether returning of unparsed results is allowed + * + * */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed. + * Whether returning of unverified results is allowed + * Unverified result is result that is parsed, but check digits are incorrect. + * + * */ this.allowUnverifiedResults = false; /** - * Currently used detector type. + * Type of document this recognizer will scan. + * + * */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Minimum number of stable detections required for detection to be successful. + * Defines how many times the same document should be detected before the detector + * returns this document as a result of the deteciton + * + * Higher number means more reliable detection, but slower processing + * + * */ this.numStableDetectionsThreshold = 6; /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; /** - * Defines whether or not recognition result should be signed. + * Whether or not recognition result should be signed. + * + * */ this.signResult = false; @@ -3396,12 +3571,12 @@ function MrtdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Image of the full document + * full document image if enabled with returnFullDocumentImage property. */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The Data extracted from the machine readable zone. + * Returns the Data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -3412,43 +3587,60 @@ MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empt BlinkID.prototype.MrtdRecognizerResult = MrtdRecognizerResult; /** - * Recognizer that can recognize Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) + * Recognizer that can recognizer Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) */ function MrtdRecognizer() { Recognizer.call(this, 'MrtdRecognizer'); /** - * Whether special characters are allowed. + * Whether special characters are allowed + * + * */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed. + * Whether returning of unparsed results is allowed + * + * */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed. + * Whether returning of unverified results is allowed + * Unverified result is result that is parsed, but check digits are incorrect. + * + * */ this.allowUnverifiedResults = false; /** - * Defines whether glare detector is enabled. + * Defines if glare detection should be turned on/off. + * + * */ this.detectGlare = true; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; @@ -3467,22 +3659,22 @@ function PassportRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Defines digital signature of recognition results. + * Digital signature of the recognition result. Available only if enabled with signResult property. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Defines digital signature version. + * Version of the digital signature. Available only if enabled with signResult property. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; /** - * Image of the full document + * full document image if enabled with returnFullDocumentImage property. */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3504,42 +3696,61 @@ function PassportRecognizer() { Recognizer.call(this, 'PassportRecognizer'); /** - * Defines whether the Netherlands MRZ should be anonymized. + * Defines whether to anonymize Netherlands MRZ + * + * */ this.anonymizeNetherlandsMrz = true; /** - * Defines whether glare detector is enabled. + * Defines if glare detection should be turned on/off. + * + * */ this.detectGlare = true; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; /** - * Defines whether or not recognition result should be signed. + * Whether or not recognition result should be signed. + * + * */ this.signResult = false; @@ -3558,12 +3769,12 @@ function VisaRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Face image from the document + * face image from the document if enabled with returnFaceImage property. */ this.faceImage = nativeResult.faceImage; /** - * Image of the full document + * full document image if enabled with returnFullDocumentImage property. */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -3585,32 +3796,47 @@ function VisaRecognizer() { Recognizer.call(this, 'VisaRecognizer'); /** - * Defines whether glare detector is enabled. + * Defines if glare detection should be turned on/off. + * + * */ this.detectGlare = true; /** - * The DPI (Dots Per Inch) for face image that should be returned. + * Property for setting DPI for face images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.faceImageDpi = 250; /** - * The DPI (Dots Per Inch) for full document image that should be returned. + * Property for setting DPI for full document images + * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception + * + * */ this.fullDocumentImageDpi = 250; /** - * The extension factors for full document image. + * Image extension factors for full document image. + * + * @see ImageExtensionFactors + * */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines whether face image will be available in result. + * Sets whether face image from ID card should be extracted + * + * */ this.returnFaceImage = false; /** - * Defines whether full document image will be available in + * Sets whether full document image of ID card should be extracted. + * + * */ this.returnFullDocumentImage = false; diff --git a/sample_files/www/js/index.js b/sample_files/www/js/index.js index 4ffdf45..e0f340d 100644 --- a/sample_files/www/js/index.js +++ b/sample_files/www/js/index.js @@ -78,7 +78,7 @@ var app = { // package name/bundleID com.microblink.sample var licenseKeys = { android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdZhZkGlTu9U3ORtDZCu0vFoxWJyF0dnv88NTiJO9pmEXPFZB9pVlO146QMSXVLAnYzACtQkatIeij7DU7ncIxLPulqRre/pOorG7HaWypuPGrotFAut0fJMJSckpf7QQC5N/97MV4Mdjk/JA6zeC83V0JqSEIMBisJRSeL4H1BqrcrDqhZpMjddPQQ+e8XVAmL2WxPsTubyqQDFvU6VSGE2nVIxbsXfpKApGRPSD7d+m46zsK6X86hMuMIu9sdtABD0AS0Bzm8HpaJZWkP51L6Ag9Dor9Iqluw0RTm+WgsQzycLBJ80iJwxryFiKOWtiPlvxQPAqn16CDT7J6h/z', - ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP4FpSuS/38JVPZ6LMS08lcu81gG/oGTKny4tPf7qrukqKTjEn5zpgzJ+z8Qhf/DzQ+rgwne5bcqvcoqY9n4fo3osaFDX1BWka1tEEmpAAJzfiZJ3MtOzdOFqyuHybzz0DWj3kemWYgJeWFbRIYQGWV56Kig9qio3d1akBWMa1wOs2mUL5Oj2w6IHS1v5E78nnjxynAgVsGKI2TqPsZFjmXfdsxg7uVP3z8ZEDYO+rOhCH3AxCk5DG++7aXGZ8HijRmvDt7z/jQfYcAApgzTTA8dDjOJ5fhMxCOKkxyzr21KjaKhDevT6NZjxp5tmbsM5A8lZ' + ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP4FpSuS/38JVOWaLMUMW+4CSRlPH5nVsy5f+xFjYutJX80GcvEyclw+SM7cjBwSazdaGilBWPcwulKICq141a1XBnYLt5nSyhDrP+PNnId8bqFT1ic1A71TubT8iroMgkbLhW7lnjNgPDyuw/2aqsS8U/pkkk8YgekN0IZm5M/0q1CSLtAehIswt5CoFtYcG1DIuGnaTvVNoRGUu7+HaVXAmxGFENiITmrOpLXFSJXFRdyBQHd3rfLgBDzIEPvTIGoGVD0ZUFFziRMkk+om4QIQE8bYHx0L8WFNbkXf5WMw2hlf3cUJmDOI04Xx1FYrTYKlbam6Q+5OsEHXjTIt5' }; function buildResult(result, key) { From cf267216001bd4222f6d01d9cbed6b9cbcce6932 Mon Sep 17 00:00:00 2001 From: Ivan Grce Date: Mon, 19 Apr 2021 16:51:39 +0200 Subject: [PATCH 6/6] Removed initIonicSampleApp.sh --- initIonicSampleApp.sh | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 initIonicSampleApp.sh diff --git a/initIonicSampleApp.sh b/initIonicSampleApp.sh deleted file mode 100755 index 66b7e4e..0000000 --- a/initIonicSampleApp.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -APP_NAME="sample" -APP_ID="com.microblink.sample" - -# remove any existing code -rm -rf $APP_NAME - -# create a sample application -ionic start $APP_NAME blank --type=ionic1 -# enter into demo project folder -cd $APP_NAME - -# add the BlinkID plugin -ionic cordova plugin add ../BlinkID - -# add ios and android support to the project -ionic cordova platform add android@8 -ionic cordova platform add ios - -# build app -ionic build - -# change the name and id of the application -sed -i "" "s/io.ionic.starter/$APP_ID/" config.xml -sed -i "" "s/MyApp/$APP_NAME/" config.xml - -# copy content of the www folder -cp -f -r ../sample_files/www/index.html ./www/ -cp -f -r ../sample_files/www/js ./www/ - -# how to run -echo "To run iOS demo application open Xcode project $APP_NAME/platforms/ios/$APP_NAME.xcodeproj and set your development team." -echo "To run Android demo application, position to $APP_NAME folder and type: ionic cordova run android" \ No newline at end of file