diff --git a/BlinkID/package.json b/BlinkID/package.json index 8beab66..4e54b7e 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-cordova", - "version": "4.6.0", + "version": "4.7.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 f3687b3..0219896 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -2,13 +2,13 @@ + version="4.7.0"> BlinkIdScanner A small and powerful ID card scanning library MIT ID - MicroBlink Team info@microblink.com + Microblink Team info@microblink.com @@ -60,6 +60,7 @@ + @@ -67,6 +68,7 @@ + @@ -89,20 +91,19 @@ + - + - - @@ -134,8 +135,7 @@ - - + @@ -150,7 +150,6 @@ - @@ -188,9 +187,11 @@ + + @@ -202,12 +203,10 @@ - + - - @@ -241,11 +240,11 @@ - + @@ -257,12 +256,12 @@ + - @@ -283,6 +282,7 @@ + @@ -290,7 +290,6 @@ - @@ -299,15 +298,13 @@ - - + - @@ -318,7 +315,6 @@ - @@ -353,11 +349,11 @@ - + @@ -370,7 +366,7 @@ - + @@ -378,6 +374,7 @@ + @@ -400,14 +397,14 @@ - + $CAMERA_USAGE_DESCRIPTION - + diff --git a/BlinkID/scripts/initIOSFramework.sh b/BlinkID/scripts/initIOSFramework.sh index bec4b0c..f43831c 100755 --- a/BlinkID/scripts/initIOSFramework.sh +++ b/BlinkID/scripts/initIOSFramework.sh @@ -4,7 +4,7 @@ HERE="$(dirname "$(test -L "$0" && readlink "$0" || echo "$0")")" pushd "${HERE}/../src/ios/" > /dev/null -LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v4.6.0/blinkid-ios_v4.6.0.zip' +LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v4.7.0/blinkid-ios_v4.7.0.zip' FILENAME='blinkid-ios.zip' # check if Microblink framework and bundle already exist @@ -15,18 +15,18 @@ echo "Unzipping ${FILENAME}" unzip -v > /dev/null 2>&1 || { echo "ERROR: couldn't unzip Microblink framework, install unzip" && exit 1; } unzip -o "${FILENAME}" > /dev/null 2>&1 && echo "Unzipped ${FILENAME}" -if [ -d 'MicroBlink.bundle' ] ; then - rm -rf MicroBlink.bundle && echo "Removing MicroBlink.bundle" +if [ -d 'Microblink.bundle' ] ; then + rm -rf Microblink.bundle && echo "Removing Microblink.bundle" fi -if [ -d 'MicroBlink.framework' ] ; then - rm -rf MicroBlink.framework && echo "Removing MicroBlink.framework" +if [ -d 'Microblink.framework' ] ; then + rm -rf Microblink.framework && echo "Removing Microblink.framework" fi cd blinkid-ios || exit 1 -mv -f MicroBlink.framework ../MicroBlink.framework -mv -f MicroBlink.bundle ../MicroBlink.bundle +mv -f Microblink.framework ../Microblink.framework +mv -f Microblink.bundle ../Microblink.bundle cd .. diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/OverlaySettingsSerializers.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/OverlaySettingsSerializers.java index 99b01db..1da7fc2 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/OverlaySettingsSerializers.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/OverlaySettingsSerializers.java @@ -23,6 +23,7 @@ private void registerMapping(OverlaySettingsSerialization overlaySettingsSeriali registerMapping(new BarcodeOverlaySettingsSerialization()); registerMapping(new DocumentOverlaySettingsSerialization()); registerMapping(new DocumentVerificationOverlaySettingsSerialization()); + registerMapping(new BlinkCardOverlaySettingsSerialization()); } public UISettings getOverlaySettings(JSONObject jsonOverlaySettings, RecognizerBundle recognizerBundle) { diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/serialization/BlinkCardOverlaySettingsSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/serialization/BlinkCardOverlaySettingsSerialization.java new file mode 100644 index 0000000..08e150d --- /dev/null +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/overlays/serialization/BlinkCardOverlaySettingsSerialization.java @@ -0,0 +1,39 @@ +package com.phonegap.plugins.microblink.overlays.serialization; + +import com.microblink.entities.recognizers.RecognizerBundle; +import com.microblink.uisettings.BlinkCardUISettings; +import com.microblink.uisettings.UISettings; +import com.phonegap.plugins.microblink.overlays.OverlaySettingsSerialization; + +import org.json.JSONObject; + +public final class BlinkCardOverlaySettingsSerialization implements OverlaySettingsSerialization { + @Override + public UISettings createUISettings(JSONObject jsonUISettings, RecognizerBundle recognizerBundle) { + BlinkCardUISettings settings = new BlinkCardUISettings(recognizerBundle); + + String firstSideInstructions = getStringFromJSONObject(jsonUISettings, "firstSideInstructions"); + if (firstSideInstructions != null) { + settings.setFirstSideInstructions(firstSideInstructions); + } + String secondSideInstructions = getStringFromJSONObject(jsonUISettings, "secondSideInstructions"); + if (secondSideInstructions != null) { + settings.setSecondSideInstructions(secondSideInstructions); + } + + return settings; + } + + private String getStringFromJSONObject(JSONObject map, String key) { + String value = map.optString(key, null); + if ("null".equals(value)) { + value = null; + } + return value; + } + + @Override + public String getJsonName() { + return "BlinkCardOverlaySettings"; + } +} diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/RecognizerSerializers.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/RecognizerSerializers.java index fb5f914..da91455 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/RecognizerSerializers.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/RecognizerSerializers.java @@ -31,10 +31,14 @@ private void registerMapping( RecognizerSerialization recognizerSerialization ) registerMapping(new AustriaIdFrontRecognizerSerialization()); registerMapping(new AustriaPassportRecognizerSerialization()); registerMapping(new BarcodeRecognizerSerialization()); + registerMapping(new BlinkCardEliteRecognizerSerialization()); + registerMapping(new BlinkCardRecognizerSerialization()); registerMapping(new BruneiIdBackRecognizerSerialization()); registerMapping(new BruneiIdFrontRecognizerSerialization()); registerMapping(new BruneiResidencePermitBackRecognizerSerialization()); registerMapping(new BruneiResidencePermitFrontRecognizerSerialization()); + registerMapping(new BruneiTemporaryResidencePermitBackRecognizerSerialization()); + registerMapping(new BruneiTemporaryResidencePermitFrontRecognizerSerialization()); registerMapping(new ColombiaDlFrontRecognizerSerialization()); registerMapping(new ColombiaIdBackRecognizerSerialization()); registerMapping(new ColombiaIdFrontRecognizerSerialization()); @@ -50,9 +54,6 @@ private void registerMapping( RecognizerSerialization recognizerSerialization ) registerMapping(new CzechiaIdFrontRecognizerSerialization()); registerMapping(new DocumentFaceRecognizerSerialization()); registerMapping(new EgyptIdFrontRecognizerSerialization()); - registerMapping(new ElitePaymentCardBackRecognizerSerialization()); - registerMapping(new ElitePaymentCardCombinedRecognizerSerialization()); - registerMapping(new ElitePaymentCardFrontRecognizerSerialization()); registerMapping(new EudlRecognizerSerialization()); registerMapping(new GermanyCombinedRecognizerSerialization()); registerMapping(new GermanyDlBackRecognizerSerialization()); @@ -83,9 +84,6 @@ private void registerMapping( RecognizerSerialization recognizerSerialization ) registerMapping(new MrtdCombinedRecognizerSerialization()); registerMapping(new MrtdRecognizerSerialization()); registerMapping(new NewZealandDlFrontRecognizerSerialization()); - registerMapping(new PaymentCardBackRecognizerSerialization()); - registerMapping(new PaymentCardCombinedRecognizerSerialization()); - registerMapping(new PaymentCardFrontRecognizerSerialization()); registerMapping(new Pdf417RecognizerSerialization()); registerMapping(new PolandCombinedRecognizerSerialization()); registerMapping(new PolandIdBackRecognizerSerialization()); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java similarity index 81% rename from BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardCombinedRecognizerSerialization.java rename to BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java index 9d2f343..ef2f57c 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java @@ -6,17 +6,17 @@ import org.json.JSONException; import org.json.JSONObject; -public final class PaymentCardCombinedRecognizerSerialization implements RecognizerSerialization { +public final class BlinkCardEliteRecognizerSerialization implements RecognizerSerialization { @Override public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardCombinedRecognizer(); + com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer recognizer = new com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer(); recognizer.setAnonymizeCardNumber(jsonRecognizer.optBoolean("anonymizeCardNumber", false)); recognizer.setAnonymizeCvv(jsonRecognizer.optBoolean("anonymizeCvv", false)); recognizer.setAnonymizeOwner(jsonRecognizer.optBoolean("anonymizeOwner", false)); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); recognizer.setExtractInventoryNumber(jsonRecognizer.optBoolean("extractInventoryNumber", true)); - recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", false)); + recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", true)); recognizer.setExtractValidThru(jsonRecognizer.optBoolean("extractValidThru", true)); recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); @@ -27,7 +27,7 @@ public final class PaymentCardCombinedRecognizerSerialization implements Recogni @Override public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardCombinedRecognizer)recognizer).getResult(); + com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer.Result result = ((com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer)recognizer).getResult(); JSONObject jsonResult = new JSONObject(); try { SerializationUtils.addCommonResultData(jsonResult, result); @@ -51,11 +51,11 @@ public JSONObject serializeResult(Recognizer recognizer) { @Override public String getJsonName() { - return "PaymentCardCombinedRecognizer"; + return "BlinkCardEliteRecognizer"; } @Override public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardCombinedRecognizer.class; + return com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer.class; } } \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardRecognizerSerialization.java similarity index 79% rename from BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardCombinedRecognizerSerialization.java rename to BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardRecognizerSerialization.java index d4532ac..c571d68 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkCardRecognizerSerialization.java @@ -6,17 +6,18 @@ import org.json.JSONException; import org.json.JSONObject; -public final class ElitePaymentCardCombinedRecognizerSerialization implements RecognizerSerialization { +public final class BlinkCardRecognizerSerialization implements RecognizerSerialization { @Override public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardCombinedRecognizer(); + com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer recognizer = new com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer(); recognizer.setAnonymizeCardNumber(jsonRecognizer.optBoolean("anonymizeCardNumber", false)); recognizer.setAnonymizeCvv(jsonRecognizer.optBoolean("anonymizeCvv", false)); recognizer.setAnonymizeOwner(jsonRecognizer.optBoolean("anonymizeOwner", false)); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); + recognizer.setExtractCvv(jsonRecognizer.optBoolean("extractCvv", true)); recognizer.setExtractInventoryNumber(jsonRecognizer.optBoolean("extractInventoryNumber", true)); - recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", true)); + recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", false)); recognizer.setExtractValidThru(jsonRecognizer.optBoolean("extractValidThru", true)); recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); @@ -27,7 +28,7 @@ public final class ElitePaymentCardCombinedRecognizerSerialization implements Re @Override public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardCombinedRecognizer)recognizer).getResult(); + com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer.Result result = ((com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer)recognizer).getResult(); JSONObject jsonResult = new JSONObject(); try { SerializationUtils.addCommonResultData(jsonResult, result); @@ -39,6 +40,7 @@ public JSONObject serializeResult(Recognizer recognizer) { jsonResult.put("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); jsonResult.put("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); jsonResult.put("inventoryNumber", result.getInventoryNumber()); + jsonResult.put("issuer", SerializationUtils.serializeEnum(result.getIssuer())); jsonResult.put("owner", result.getOwner()); jsonResult.put("scanningFirstSideDone", result.isScanningFirstSideDone()); jsonResult.put("validThru", SerializationUtils.serializeDate(result.getValidThru())); @@ -51,11 +53,11 @@ public JSONObject serializeResult(Recognizer recognizer) { @Override public String getJsonName() { - return "ElitePaymentCardCombinedRecognizer"; + return "BlinkCardRecognizer"; } @Override public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardCombinedRecognizer.class; + return com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer.class; } } \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardBackRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java similarity index 52% rename from BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardBackRecognizerSerialization.java rename to BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java index 49b4ea6..21151aa 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardBackRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java @@ -6,16 +6,15 @@ import org.json.JSONException; import org.json.JSONObject; -public final class ElitePaymentCardBackRecognizerSerialization implements RecognizerSerialization { +public final class BruneiTemporaryResidencePermitBackRecognizerSerialization implements RecognizerSerialization { @Override public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardBackRecognizer(); - recognizer.setAnonymizeCardNumber(jsonRecognizer.optBoolean("anonymizeCardNumber", false)); - recognizer.setAnonymizeCvv(jsonRecognizer.optBoolean("anonymizeCvv", false)); + com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer(); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); - recognizer.setExtractInventoryNumber(jsonRecognizer.optBoolean("extractInventoryNumber", true)); - recognizer.setExtractValidThru(jsonRecognizer.optBoolean("extractValidThru", true)); + recognizer.setExtractAddress(jsonRecognizer.optBoolean("extractAddress", true)); + recognizer.setExtractDateOfIssue(jsonRecognizer.optBoolean("extractDateOfIssue", true)); + recognizer.setExtractPassportNumber(jsonRecognizer.optBoolean("extractPassportNumber", true)); recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); @@ -24,15 +23,15 @@ public final class ElitePaymentCardBackRecognizerSerialization implements Recogn @Override public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardBackRecognizer)recognizer).getResult(); + com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer)recognizer).getResult(); JSONObject jsonResult = new JSONObject(); try { SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.put("cardNumber", result.getCardNumber()); - jsonResult.put("cvv", result.getCvv()); + jsonResult.put("address", result.getAddress()); + jsonResult.put("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("inventoryNumber", result.getInventoryNumber()); - jsonResult.put("validThru", SerializationUtils.serializeDate(result.getValidThru())); + jsonResult.put("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); + jsonResult.put("passportNumber", result.getPassportNumber()); } catch (JSONException e) { // see https://developer.android.com/reference/org/json/JSONException throw new RuntimeException(e); @@ -42,11 +41,11 @@ public JSONObject serializeResult(Recognizer recognizer) { @Override public String getJsonName() { - return "ElitePaymentCardBackRecognizer"; + return "BruneiTemporaryResidencePermitBackRecognizer"; } @Override public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardBackRecognizer.class; + return com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer.class; } } \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java new file mode 100644 index 0000000..871110a --- /dev/null +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java @@ -0,0 +1,58 @@ +package com.phonegap.plugins.microblink.recognizers.serialization; + +import com.microblink.entities.recognizers.Recognizer; +import com.phonegap.plugins.microblink.recognizers.RecognizerSerialization; + +import org.json.JSONException; +import org.json.JSONObject; + +public final class BruneiTemporaryResidencePermitFrontRecognizerSerialization implements RecognizerSerialization { + + @Override + public Recognizer createRecognizer(JSONObject jsonRecognizer) { + com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer(); + recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); + recognizer.setExtractAddress(jsonRecognizer.optBoolean("extractAddress", true)); + recognizer.setExtractDateOfBirth(jsonRecognizer.optBoolean("extractDateOfBirth", true)); + recognizer.setExtractFullName(jsonRecognizer.optBoolean("extractFullName", true)); + recognizer.setExtractPlaceOfBirth(jsonRecognizer.optBoolean("extractPlaceOfBirth", true)); + recognizer.setExtractSex(jsonRecognizer.optBoolean("extractSex", true)); + recognizer.setFaceImageDpi(jsonRecognizer.optInt("faceImageDpi", 250)); + recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); + recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); + recognizer.setReturnFaceImage(jsonRecognizer.optBoolean("returnFaceImage", false)); + recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); + return recognizer; + } + + @Override + public JSONObject serializeResult(Recognizer recognizer) { + com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer)recognizer).getResult(); + JSONObject jsonResult = new JSONObject(); + try { + SerializationUtils.addCommonResultData(jsonResult, result); + jsonResult.put("address", result.getAddress()); + jsonResult.put("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); + jsonResult.put("documentNumber", result.getDocumentNumber()); + jsonResult.put("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); + jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); + jsonResult.put("fullName", result.getFullName()); + jsonResult.put("placeOfBirth", result.getPlaceOfBirth()); + jsonResult.put("sex", result.getSex()); + } catch (JSONException e) { + // see https://developer.android.com/reference/org/json/JSONException + throw new RuntimeException(e); + } + return jsonResult; + } + + @Override + public String getJsonName() { + return "BruneiTemporaryResidencePermitFrontRecognizer"; + } + + @Override + public Class getRecognizerClass() { + return com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer.class; + } +} \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java index a16c5bb..02e9750 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java @@ -19,7 +19,6 @@ public final class CroatiaCombinedRecognizerSerialization implements RecognizerS recognizer.setExtractFirstName(jsonRecognizer.optBoolean("extractFirstName", true)); recognizer.setExtractIssuedBy(jsonRecognizer.optBoolean("extractIssuedBy", true)); recognizer.setExtractLastName(jsonRecognizer.optBoolean("extractLastName", true)); - recognizer.setExtractPersonalIdentificationNumber(jsonRecognizer.optBoolean("extractPersonalIdentificationNumber", true)); recognizer.setExtractResidence(jsonRecognizer.optBoolean("extractResidence", true)); recognizer.setExtractSex(jsonRecognizer.optBoolean("extractSex", true)); recognizer.setFaceImageDpi(jsonRecognizer.optInt("faceImageDpi", 250)); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardFrontRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardFrontRecognizerSerialization.java deleted file mode 100644 index 559fbc8..0000000 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/ElitePaymentCardFrontRecognizerSerialization.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.phonegap.plugins.microblink.recognizers.serialization; - -import com.microblink.entities.recognizers.Recognizer; -import com.phonegap.plugins.microblink.recognizers.RecognizerSerialization; - -import org.json.JSONException; -import org.json.JSONObject; - -public final class ElitePaymentCardFrontRecognizerSerialization implements RecognizerSerialization { - - @Override - public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardFrontRecognizer(); - recognizer.setAnonymizeOwner(jsonRecognizer.optBoolean("anonymizeOwner", false)); - recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); - recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", true)); - recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); - recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); - return recognizer; - } - - @Override - public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardFrontRecognizer)recognizer).getResult(); - JSONObject jsonResult = new JSONObject(); - try { - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("owner", result.getOwner()); - } catch (JSONException e) { - // see https://developer.android.com/reference/org/json/JSONException - throw new RuntimeException(e); - } - return jsonResult; - } - - @Override - public String getJsonName() { - return "ElitePaymentCardFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.elitepaymentcard.ElitePaymentCardFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdCombinedRecognizerSerialization.java index 7798af0..2bc8fe8 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdCombinedRecognizerSerialization.java @@ -11,9 +11,9 @@ public final class MrtdCombinedRecognizerSerialization implements RecognizerSeri @Override public Recognizer createRecognizer(JSONObject jsonRecognizer) { com.microblink.entities.recognizers.blinkid.mrtd.MrtdCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.mrtd.MrtdCombinedRecognizer(); + recognizer.setAllowSpecialCharacters(jsonRecognizer.optBoolean("allowSpecialCharacters", false)); recognizer.setAllowUnparsedResults(jsonRecognizer.optBoolean("allowUnparsedResults", false)); recognizer.setAllowUnverifiedResults(jsonRecognizer.optBoolean("allowUnverifiedResults", false)); - recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); recognizer.setDetectorType(com.microblink.entities.recognizers.blinkid.documentface.DocumentFaceDetectorType.values()[jsonRecognizer.optInt("detectorType", 1) - 1]); recognizer.setFaceImageDpi(jsonRecognizer.optInt("faceImageDpi", 250)); recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdRecognizerSerialization.java index 5a4d193..413bd66 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/MrtdRecognizerSerialization.java @@ -11,14 +11,13 @@ public final class MrtdRecognizerSerialization implements RecognizerSerializatio @Override public Recognizer createRecognizer(JSONObject jsonRecognizer) { com.microblink.entities.recognizers.blinkid.mrtd.MrtdRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.mrtd.MrtdRecognizer(); + recognizer.setAllowSpecialCharacters(jsonRecognizer.optBoolean("allowSpecialCharacters", false)); recognizer.setAllowUnparsedResults(jsonRecognizer.optBoolean("allowUnparsedResults", false)); recognizer.setAllowUnverifiedResults(jsonRecognizer.optBoolean("allowUnverifiedResults", false)); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); - recognizer.setMrzImageDpi(jsonRecognizer.optInt("mrzImageDpi", 250)); recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); - recognizer.setReturnMrzImage(jsonRecognizer.optBoolean("returnMrzImage", false)); return recognizer; } @@ -29,7 +28,6 @@ public JSONObject serializeResult(Recognizer recognizer) { try { SerializationUtils.addCommonResultData(jsonResult, result); jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("mrzImage", SerializationUtils.encodeImageBase64(result.getMrzImage())); jsonResult.put("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); } catch (JSONException e) { // see https://developer.android.com/reference/org/json/JSONException diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardBackRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardBackRecognizerSerialization.java deleted file mode 100644 index 910c8d0..0000000 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardBackRecognizerSerialization.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.phonegap.plugins.microblink.recognizers.serialization; - -import com.microblink.entities.recognizers.Recognizer; -import com.phonegap.plugins.microblink.recognizers.RecognizerSerialization; - -import org.json.JSONException; -import org.json.JSONObject; - -public final class PaymentCardBackRecognizerSerialization implements RecognizerSerialization { - - @Override - public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardBackRecognizer(); - recognizer.setAnonymizeCvv(jsonRecognizer.optBoolean("anonymizeCvv", false)); - recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); - recognizer.setExtractInventoryNumber(jsonRecognizer.optBoolean("extractInventoryNumber", true)); - recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); - recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); - return recognizer; - } - - @Override - public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardBackRecognizer)recognizer).getResult(); - JSONObject jsonResult = new JSONObject(); - try { - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.put("cvv", result.getCvv()); - jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("inventoryNumber", result.getInventoryNumber()); - } catch (JSONException e) { - // see https://developer.android.com/reference/org/json/JSONException - throw new RuntimeException(e); - } - return jsonResult; - } - - @Override - public String getJsonName() { - return "PaymentCardBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardFrontRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardFrontRecognizerSerialization.java deleted file mode 100644 index a219fc6..0000000 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PaymentCardFrontRecognizerSerialization.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.phonegap.plugins.microblink.recognizers.serialization; - -import com.microblink.entities.recognizers.Recognizer; -import com.phonegap.plugins.microblink.recognizers.RecognizerSerialization; - -import org.json.JSONException; -import org.json.JSONObject; - -public final class PaymentCardFrontRecognizerSerialization implements RecognizerSerialization { - - @Override - public Recognizer createRecognizer(JSONObject jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardFrontRecognizer(); - recognizer.setAnonymizeCardNumber(jsonRecognizer.optBoolean("anonymizeCardNumber", false)); - recognizer.setAnonymizeOwner(jsonRecognizer.optBoolean("anonymizeOwner", false)); - recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); - recognizer.setExtractOwner(jsonRecognizer.optBoolean("extractOwner", false)); - recognizer.setExtractValidThru(jsonRecognizer.optBoolean("extractValidThru", true)); - recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); - recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); - return recognizer; - } - - @Override - public JSONObject serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardFrontRecognizer)recognizer).getResult(); - JSONObject jsonResult = new JSONObject(); - try { - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.put("cardNumber", result.getCardNumber()); - jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("owner", result.getOwner()); - jsonResult.put("validThru", SerializationUtils.serializeDate(result.getValidThru())); - } catch (JSONException e) { - // see https://developer.android.com/reference/org/json/JSONException - throw new RuntimeException(e); - } - return jsonResult; - } - - @Override - public String getJsonName() { - return "PaymentCardFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.paymentcard.PaymentCardFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdBackRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdBackRecognizerSerialization.java index 930c8b8..2c9bb88 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdBackRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdBackRecognizerSerialization.java @@ -12,6 +12,8 @@ public final class PolandIdBackRecognizerSerialization implements RecognizerSeri public Recognizer createRecognizer(JSONObject jsonRecognizer) { com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer(); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); + recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); + recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); return recognizer; } @@ -22,21 +24,8 @@ public JSONObject serializeResult(Recognizer recognizer) { JSONObject jsonResult = new JSONObject(); try { SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.put("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.put("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.put("documentCode", result.getDocumentCode()); - jsonResult.put("documentNumber", result.getDocumentNumber()); jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.put("issuer", result.getIssuer()); - jsonResult.put("mrzParsed", result.isMrzParsed()); - jsonResult.put("mrzText", result.getMrzText()); - jsonResult.put("mrzVerified", result.isMrzVerified()); - jsonResult.put("nationality", result.getNationality()); - jsonResult.put("opt1", result.getOpt1()); - jsonResult.put("opt2", result.getOpt2()); - jsonResult.put("primaryId", result.getPrimaryId()); - jsonResult.put("secondaryId", result.getSecondaryId()); - jsonResult.put("sex", result.getSex()); + jsonResult.put("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); } catch (JSONException e) { // see https://developer.android.com/reference/org/json/JSONException throw new RuntimeException(e); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdFrontRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdFrontRecognizerSerialization.java index 58d3f77..64b89be 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdFrontRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/PolandIdFrontRecognizerSerialization.java @@ -13,11 +13,14 @@ public final class PolandIdFrontRecognizerSerialization implements RecognizerSer com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer(); recognizer.setDetectGlare(jsonRecognizer.optBoolean("detectGlare", true)); recognizer.setExtractDateOfBirth(jsonRecognizer.optBoolean("extractDateOfBirth", true)); - recognizer.setExtractFamilyName(jsonRecognizer.optBoolean("extractFamilyName", true)); + recognizer.setExtractFamilyName(jsonRecognizer.optBoolean("extractFamilyName", false)); recognizer.setExtractGivenNames(jsonRecognizer.optBoolean("extractGivenNames", true)); - recognizer.setExtractParentsGivenNames(jsonRecognizer.optBoolean("extractParentsGivenNames", true)); + recognizer.setExtractParentsGivenNames(jsonRecognizer.optBoolean("extractParentsGivenNames", false)); recognizer.setExtractSex(jsonRecognizer.optBoolean("extractSex", true)); recognizer.setExtractSurname(jsonRecognizer.optBoolean("extractSurname", true)); + recognizer.setFaceImageDpi(jsonRecognizer.optInt("faceImageDpi", 250)); + recognizer.setFullDocumentImageDpi(jsonRecognizer.optInt("fullDocumentImageDpi", 250)); + recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.optJSONObject("fullDocumentImageExtensionFactors"))); recognizer.setReturnFaceImage(jsonRecognizer.optBoolean("returnFaceImage", false)); recognizer.setReturnFullDocumentImage(jsonRecognizer.optBoolean("returnFullDocumentImage", false)); return recognizer; diff --git a/BlinkID/src/android/libBlinkID.gradle b/BlinkID/src/android/libBlinkID.gradle index e2fe211..945ca5e 100644 --- a/BlinkID/src/android/libBlinkID.gradle +++ b/BlinkID/src/android/libBlinkID.gradle @@ -5,8 +5,8 @@ repositories { } dependencies { - compile "com.android.support:appcompat-v7:27.1.1" - compile('com.microblink:blinkid:4.6.0@aar') { + implementation "com.android.support:appcompat-v7:27.1.1" + implementation('com.microblink:blinkid:4.7.0@aar') { transitive = false } } diff --git a/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.m b/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.m index d16cc59..c2ac581 100644 --- a/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.m +++ b/BlinkID/src/ios/sources/Overlays/MBOverlaySettingsSerializers.m @@ -10,6 +10,7 @@ #import "MBOverlayVCCreator.h" #import "MBBarcodeOverlaySettingsSerialization.h" +#import "MBBlinkCardOverlaySettingsSerialization.h" #import "MBDocumentOverlaySettingsSerialization.h" #import "MBDocumentVerificationOverlaySettingsSerialization.h" @@ -31,6 +32,7 @@ - (instancetype)init { _overlayCreators = [[NSMutableDictionary alloc] init]; [self registerMapping:[[MBBarcodeOverlaySettingsSerialization alloc] init]]; + [self registerMapping:[[MBBlinkCardOverlaySettingsSerialization alloc] init]]; [self registerMapping:[[MBDocumentOverlaySettingsSerialization alloc] init]]; [self registerMapping:[[MBDocumentVerificationOverlaySettingsSerialization alloc] init]]; } diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h new file mode 100644 index 0000000..967cd3b --- /dev/null +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h @@ -0,0 +1,14 @@ +// +// MBBlinkCardOverlaySettingsSerialization.h +// BlinkIdDevDemo +// +// Created by DoDo on 04/06/2018. +// + +#import "MBOverlayVCCreator.h" + +#import + +@interface MBBlinkCardOverlaySettingsSerialization : NSObject + +@end diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m new file mode 100644 index 0000000..b76df9e --- /dev/null +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m @@ -0,0 +1,52 @@ +// +// MBBlinkCardOverlaySettingsSerialization.m +// BlinkIdDevDemo +// +// Created by DoDo on 04/06/2018. +// + +#import "MBBlinkCardOverlaySettingsSerialization.h" + +@interface MBBlinkCardOverlaySettingsSerialization () + +@property (nonatomic, weak) id delegate; + +@end + +@implementation MBBlinkCardOverlaySettingsSerialization + +@synthesize jsonName = _jsonName; + +-(instancetype) init { + self = [super init]; + if (self) { + _jsonName = @"BlinkCardOverlaySettings"; + } + return self; +} + +-(MBOverlayViewController *) createOverlayViewController:(NSDictionary *)jsonOverlaySettings recognizerCollection:(MBRecognizerCollection*)recognizerCollection delegate:(id) delegate { + // no settings deserialized at the moment + MBBlinkCardOverlaySettings *sett = [[MBBlinkCardOverlaySettings alloc] init]; + self.delegate = delegate; + + { + id glareMessage = [jsonOverlaySettings valueForKey:@"glareMessage"]; + if (glareMessage != nil) { + sett.glareStatusMessage = (NSString *)glareMessage; + } + } + + return [[MBBlinkCardOverlayViewController alloc] initWithSettings:sett recognizerCollection:recognizerCollection delegate:self]; +} + + +- (void)blinkCardOverlayViewControllerDidFinishScanning:(nonnull MBBlinkCardOverlayViewController *)blinkCardOverlayViewController state:(MBRecognizerResultState)state { + [self.delegate overlayViewControllerDidFinishScanning:blinkCardOverlayViewController state:state]; +} + +- (void)blinkCardOverlayViewControllerDidTapClose:(nonnull MBBlinkCardOverlayViewController *)blinkCardOverlayViewController { + [self.delegate overlayDidTapClose:blinkCardOverlayViewController]; +} + +@end diff --git a/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.m b/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.m index 330d0b8..a2a306c 100644 --- a/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.m +++ b/BlinkID/src/ios/sources/Recognizers/MBRecognizerSerializers.m @@ -10,10 +10,14 @@ #import "MBAustriaIdFrontRecognizerWrapper.h" #import "MBAustriaPassportRecognizerWrapper.h" #import "MBBarcodeRecognizerWrapper.h" +#import "MBBlinkCardEliteRecognizerWrapper.h" +#import "MBBlinkCardRecognizerWrapper.h" #import "MBBruneiIdBackRecognizerWrapper.h" #import "MBBruneiIdFrontRecognizerWrapper.h" #import "MBBruneiResidencePermitBackRecognizerWrapper.h" #import "MBBruneiResidencePermitFrontRecognizerWrapper.h" +#import "MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h" +#import "MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h" #import "MBColombiaDlFrontRecognizerWrapper.h" #import "MBColombiaIdBackRecognizerWrapper.h" #import "MBColombiaIdFrontRecognizerWrapper.h" @@ -29,9 +33,6 @@ #import "MBCzechiaIdFrontRecognizerWrapper.h" #import "MBDocumentFaceRecognizerWrapper.h" #import "MBEgyptIdFrontRecognizerWrapper.h" -#import "MBElitePaymentCardBackRecognizerWrapper.h" -#import "MBElitePaymentCardCombinedRecognizerWrapper.h" -#import "MBElitePaymentCardFrontRecognizerWrapper.h" #import "MBEudlRecognizerWrapper.h" #import "MBGermanyCombinedRecognizerWrapper.h" #import "MBGermanyDlBackRecognizerWrapper.h" @@ -62,9 +63,6 @@ #import "MBMrtdCombinedRecognizerWrapper.h" #import "MBMrtdRecognizerWrapper.h" #import "MBNewZealandDlFrontRecognizerWrapper.h" -#import "MBPaymentCardBackRecognizerWrapper.h" -#import "MBPaymentCardCombinedRecognizerWrapper.h" -#import "MBPaymentCardFrontRecognizerWrapper.h" #import "MBPdf417RecognizerWrapper.h" #import "MBPolandCombinedRecognizerWrapper.h" #import "MBPolandIdBackRecognizerWrapper.h" @@ -124,10 +122,14 @@ - (instancetype)init { [self registerCreator:[[MBAustriaIdFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBAustriaPassportRecognizerCreator alloc] init]]; [self registerCreator:[[MBBarcodeRecognizerCreator alloc] init]]; + [self registerCreator:[[MBBlinkCardEliteRecognizerCreator alloc] init]]; + [self registerCreator:[[MBBlinkCardRecognizerCreator alloc] init]]; [self registerCreator:[[MBBruneiIdBackRecognizerCreator alloc] init]]; [self registerCreator:[[MBBruneiIdFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBBruneiResidencePermitBackRecognizerCreator alloc] init]]; [self registerCreator:[[MBBruneiResidencePermitFrontRecognizerCreator alloc] init]]; + [self registerCreator:[[MBBruneiTemporaryResidencePermitBackRecognizerCreator alloc] init]]; + [self registerCreator:[[MBBruneiTemporaryResidencePermitFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBColombiaDlFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBColombiaIdBackRecognizerCreator alloc] init]]; [self registerCreator:[[MBColombiaIdFrontRecognizerCreator alloc] init]]; @@ -143,9 +145,6 @@ - (instancetype)init { [self registerCreator:[[MBCzechiaIdFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBDocumentFaceRecognizerCreator alloc] init]]; [self registerCreator:[[MBEgyptIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBElitePaymentCardBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBElitePaymentCardCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBElitePaymentCardFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBEudlRecognizerCreator alloc] init]]; [self registerCreator:[[MBGermanyCombinedRecognizerCreator alloc] init]]; [self registerCreator:[[MBGermanyDlBackRecognizerCreator alloc] init]]; @@ -176,9 +175,6 @@ - (instancetype)init { [self registerCreator:[[MBMrtdCombinedRecognizerCreator alloc] init]]; [self registerCreator:[[MBMrtdRecognizerCreator alloc] init]]; [self registerCreator:[[MBNewZealandDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPaymentCardBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPaymentCardCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPaymentCardFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBPdf417RecognizerCreator alloc] init]]; [self registerCreator:[[MBPolandCombinedRecognizerCreator alloc] init]]; [self registerCreator:[[MBPolandIdBackRecognizerCreator alloc] init]]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h new file mode 100644 index 0000000..ea2a3ab --- /dev/null +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h @@ -0,0 +1,6 @@ +#import "MBRecognizerWrapper.h" +#import + +@interface MBBlinkCardEliteRecognizerCreator : NSObject + +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m similarity index 91% rename from BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.m rename to BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m index 93ceacd..9b57a15 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m @@ -1,21 +1,21 @@ -#import "MBPaymentCardCombinedRecognizerWrapper.h" +#import "MBBlinkCardEliteRecognizerWrapper.h" #import "MBSerializationUtils.h" #import "MBBlinkIDSerializationUtils.h" -@implementation MBPaymentCardCombinedRecognizerCreator +@implementation MBBlinkCardEliteRecognizerCreator @synthesize jsonName = _jsonName; -(instancetype) init { self = [super init]; if (self) { - _jsonName = @"PaymentCardCombinedRecognizer"; + _jsonName = @"BlinkCardEliteRecognizer"; } return self; } -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPaymentCardCombinedRecognizer *recognizer = [[MBPaymentCardCombinedRecognizer alloc] init]; + MBBlinkCardEliteRecognizer *recognizer = [[MBBlinkCardEliteRecognizer alloc] init]; { id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; if (anonymizeCardNumber != nil) { @@ -88,10 +88,10 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { @end -@interface MBPaymentCardCombinedRecognizer (JsonSerialization) +@interface MBBlinkCardEliteRecognizer (JsonSerialization) @end -@implementation MBPaymentCardCombinedRecognizer (JsonSerialization) +@implementation MBBlinkCardEliteRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h new file mode 100644 index 0000000..5b014ea --- /dev/null +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h @@ -0,0 +1,6 @@ +#import "MBRecognizerWrapper.h" +#import + +@interface MBBlinkCardRecognizerCreator : NSObject + +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m similarity index 87% rename from BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.m rename to BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m index 0cf8a2a..a0896dc 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m @@ -1,21 +1,21 @@ -#import "MBElitePaymentCardCombinedRecognizerWrapper.h" +#import "MBBlinkCardRecognizerWrapper.h" #import "MBSerializationUtils.h" #import "MBBlinkIDSerializationUtils.h" -@implementation MBElitePaymentCardCombinedRecognizerCreator +@implementation MBBlinkCardRecognizerCreator @synthesize jsonName = _jsonName; -(instancetype) init { self = [super init]; if (self) { - _jsonName = @"ElitePaymentCardCombinedRecognizer"; + _jsonName = @"BlinkCardRecognizer"; } return self; } -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBElitePaymentCardCombinedRecognizer *recognizer = [[MBElitePaymentCardCombinedRecognizer alloc] init]; + MBBlinkCardRecognizer *recognizer = [[MBBlinkCardRecognizer alloc] init]; { id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; if (anonymizeCardNumber != nil) { @@ -40,6 +40,12 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; } } + { + id extractCvv = [jsonRecognizer valueForKey:@"extractCvv"]; + if (extractCvv != nil) { + recognizer.extractCvv = [(NSNumber *)extractCvv boolValue]; + } + } { id extractInventoryNumber = [jsonRecognizer valueForKey:@"extractInventoryNumber"]; if (extractInventoryNumber != nil) { @@ -88,10 +94,10 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { @end -@interface MBElitePaymentCardCombinedRecognizer (JsonSerialization) +@interface MBBlinkCardRecognizer (JsonSerialization) @end -@implementation MBElitePaymentCardCombinedRecognizer (JsonSerialization) +@implementation MBBlinkCardRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; @@ -103,6 +109,7 @@ -(NSDictionary *) serializeResult { [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; [jsonResult setValue:self.result.inventoryNumber forKey:@"inventoryNumber"]; + [jsonResult setValue:[NSNumber numberWithInteger:(self.result.issuer + 1)] forKey:@"issuer"]; [jsonResult setValue:self.result.owner forKey:@"owner"]; [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validThru] forKey:@"validThru"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h new file mode 100644 index 0000000..7171cc2 --- /dev/null +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h @@ -0,0 +1,6 @@ +#import "MBRecognizerWrapper.h" +#import + +@interface MBBruneiTemporaryResidencePermitBackRecognizerCreator : NSObject + +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m similarity index 55% rename from BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.m rename to BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m index bce9b89..bf6c874 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m @@ -1,33 +1,21 @@ -#import "MBPaymentCardFrontRecognizerWrapper.h" +#import "MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h" #import "MBSerializationUtils.h" #import "MBBlinkIDSerializationUtils.h" -@implementation MBPaymentCardFrontRecognizerCreator +@implementation MBBruneiTemporaryResidencePermitBackRecognizerCreator @synthesize jsonName = _jsonName; -(instancetype) init { self = [super init]; if (self) { - _jsonName = @"PaymentCardFrontRecognizer"; + _jsonName = @"BruneiTemporaryResidencePermitBackRecognizer"; } return self; } -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPaymentCardFrontRecognizer *recognizer = [[MBPaymentCardFrontRecognizer alloc] init]; - { - id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; - if (anonymizeCardNumber != nil) { - recognizer.anonymizeCardNumber = [(NSNumber *)anonymizeCardNumber boolValue]; - } - } - { - id anonymizeOwner = [jsonRecognizer valueForKey:@"anonymizeOwner"]; - if (anonymizeOwner != nil) { - recognizer.anonymizeOwner = [(NSNumber *)anonymizeOwner boolValue]; - } - } + MBBruneiTemporaryResidencePermitBackRecognizer *recognizer = [[MBBruneiTemporaryResidencePermitBackRecognizer alloc] init]; { id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; if (detectGlare != nil) { @@ -35,15 +23,21 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { } } { - id extractOwner = [jsonRecognizer valueForKey:@"extractOwner"]; - if (extractOwner != nil) { - recognizer.extractOwner = [(NSNumber *)extractOwner boolValue]; + id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; + if (extractAddress != nil) { + recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; + } + } + { + id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; + if (extractDateOfIssue != nil) { + recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; } } { - id extractValidThru = [jsonRecognizer valueForKey:@"extractValidThru"]; - if (extractValidThru != nil) { - recognizer.extractValidThru = [(NSNumber *)extractValidThru boolValue]; + id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; + if (extractPassportNumber != nil) { + recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; } } { @@ -70,17 +64,18 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { @end -@interface MBPaymentCardFrontRecognizer (JsonSerialization) +@interface MBBruneiTemporaryResidencePermitBackRecognizer (JsonSerialization) @end -@implementation MBPaymentCardFrontRecognizer (JsonSerialization) +@implementation MBBruneiTemporaryResidencePermitBackRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; + [jsonResult setValue:self.result.address forKey:@"address"]; + [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.owner forKey:@"owner"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validThru] forKey:@"validThru"]; + [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; + [jsonResult setValue:self.result.passportNumber forKey:@"passportNumber"]; return jsonResult; } diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h new file mode 100644 index 0000000..7435929 --- /dev/null +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h @@ -0,0 +1,6 @@ +#import "MBRecognizerWrapper.h" +#import + +@interface MBBruneiTemporaryResidencePermitFrontRecognizerCreator : NSObject + +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m new file mode 100644 index 0000000..430be43 --- /dev/null +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m @@ -0,0 +1,110 @@ +#import "MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h" +#import "MBSerializationUtils.h" +#import "MBBlinkIDSerializationUtils.h" + +@implementation MBBruneiTemporaryResidencePermitFrontRecognizerCreator + +@synthesize jsonName = _jsonName; + +-(instancetype) init { + self = [super init]; + if (self) { + _jsonName = @"BruneiTemporaryResidencePermitFrontRecognizer"; + } + return self; +} + +-(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { + MBBruneiTemporaryResidencePermitFrontRecognizer *recognizer = [[MBBruneiTemporaryResidencePermitFrontRecognizer alloc] init]; + { + id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; + if (detectGlare != nil) { + recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; + } + } + { + id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; + if (extractAddress != nil) { + recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; + } + } + { + id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; + if (extractDateOfBirth != nil) { + recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; + } + } + { + id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; + if (extractFullName != nil) { + recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; + } + } + { + id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; + if (extractPlaceOfBirth != nil) { + recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; + } + } + { + id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; + if (extractSex != nil) { + recognizer.extractSex = [(NSNumber *)extractSex boolValue]; + } + } + { + id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; + if (faceImageDpi != nil) { + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + } + } + { + id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; + if (fullDocumentImageDpi != nil) { + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + } + } + { + id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; + if (fullDocumentImageExtensionFactors != nil) { + recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; + } + } + { + id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; + if (returnFaceImage != nil) { + recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; + } + } + { + id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; + if (returnFullDocumentImage != nil) { + recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; + } + } + + return recognizer; +} + +@end + +@interface MBBruneiTemporaryResidencePermitFrontRecognizer (JsonSerialization) +@end + +@implementation MBBruneiTemporaryResidencePermitFrontRecognizer (JsonSerialization) + +-(NSDictionary *) serializeResult { + NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; + [jsonResult setValue:self.result.address forKey:@"address"]; + [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; + [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; + [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; + [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; + [jsonResult setValue:self.result.fullName forKey:@"fullName"]; + [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; + [jsonResult setValue:self.result.sex forKey:@"sex"]; + + return jsonResult; +} + +@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.h deleted file mode 100644 index 153e4cc..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBElitePaymentCardBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.m deleted file mode 100644 index d8595d6..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardBackRecognizerWrapper.m +++ /dev/null @@ -1,89 +0,0 @@ -#import "MBElitePaymentCardBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBElitePaymentCardBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ElitePaymentCardBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBElitePaymentCardBackRecognizer *recognizer = [[MBElitePaymentCardBackRecognizer alloc] init]; - { - id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; - if (anonymizeCardNumber != nil) { - recognizer.anonymizeCardNumber = [(NSNumber *)anonymizeCardNumber boolValue]; - } - } - { - id anonymizeCvv = [jsonRecognizer valueForKey:@"anonymizeCvv"]; - if (anonymizeCvv != nil) { - recognizer.anonymizeCvv = [(NSNumber *)anonymizeCvv boolValue]; - } - } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractInventoryNumber = [jsonRecognizer valueForKey:@"extractInventoryNumber"]; - if (extractInventoryNumber != nil) { - recognizer.extractInventoryNumber = [(NSNumber *)extractInventoryNumber boolValue]; - } - } - { - id extractValidThru = [jsonRecognizer valueForKey:@"extractValidThru"]; - if (extractValidThru != nil) { - recognizer.extractValidThru = [(NSNumber *)extractValidThru boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBElitePaymentCardBackRecognizer (JsonSerialization) -@end - -@implementation MBElitePaymentCardBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:self.result.cvv forKey:@"cvv"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.inventoryNumber forKey:@"inventoryNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validThru] forKey:@"validThru"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.h deleted file mode 100644 index 00cf1dd..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBElitePaymentCardCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.h deleted file mode 100644 index ba10236..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBElitePaymentCardFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.m deleted file mode 100644 index 710fc89..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBElitePaymentCardFrontRecognizerWrapper.m +++ /dev/null @@ -1,74 +0,0 @@ -#import "MBElitePaymentCardFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBElitePaymentCardFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ElitePaymentCardFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBElitePaymentCardFrontRecognizer *recognizer = [[MBElitePaymentCardFrontRecognizer alloc] init]; - { - id anonymizeOwner = [jsonRecognizer valueForKey:@"anonymizeOwner"]; - if (anonymizeOwner != nil) { - recognizer.anonymizeOwner = [(NSNumber *)anonymizeOwner boolValue]; - } - } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractOwner = [jsonRecognizer valueForKey:@"extractOwner"]; - if (extractOwner != nil) { - recognizer.extractOwner = [(NSNumber *)extractOwner boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBElitePaymentCardFrontRecognizer (JsonSerialization) -@end - -@implementation MBElitePaymentCardFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.owner forKey:@"owner"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m index 99fbb81..70f68f3 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m @@ -16,6 +16,12 @@ -(instancetype) init { -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { MBMrtdCombinedRecognizer *recognizer = [[MBMrtdCombinedRecognizer alloc] init]; + { + id allowSpecialCharacters = [jsonRecognizer valueForKey:@"allowSpecialCharacters"]; + if (allowSpecialCharacters != nil) { + recognizer.allowSpecialCharacters = [(NSNumber *)allowSpecialCharacters boolValue]; + } + } { id allowUnparsedResults = [jsonRecognizer valueForKey:@"allowUnparsedResults"]; if (allowUnparsedResults != nil) { @@ -28,12 +34,6 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.allowUnverifiedResults = [(NSNumber *)allowUnverifiedResults boolValue]; } } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } { id detectorType = [jsonRecognizer valueForKey:@"detectorType"]; if (detectorType != nil) { diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m index ada8c6f..7d3f3c1 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m @@ -16,6 +16,12 @@ -(instancetype) init { -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { MBMrtdRecognizer *recognizer = [[MBMrtdRecognizer alloc] init]; + { + id allowSpecialCharacters = [jsonRecognizer valueForKey:@"allowSpecialCharacters"]; + if (allowSpecialCharacters != nil) { + recognizer.allowSpecialCharacters = [(NSNumber *)allowSpecialCharacters boolValue]; + } + } { id allowUnparsedResults = [jsonRecognizer valueForKey:@"allowUnparsedResults"]; if (allowUnparsedResults != nil) { @@ -46,24 +52,12 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; } } - { - id mrzImageDpi = [jsonRecognizer valueForKey:@"mrzImageDpi"]; - if (mrzImageDpi != nil) { - recognizer.mrzImageDpi = [(NSNumber *)mrzImageDpi unsignedIntegerValue]; - } - } { id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; if (returnFullDocumentImage != nil) { recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; } } - { - id returnMrzImage = [jsonRecognizer valueForKey:@"returnMrzImage"]; - if (returnMrzImage != nil) { - recognizer.returnMrzImage = [(NSNumber *)returnMrzImage boolValue]; - } - } return recognizer; } @@ -78,7 +72,6 @@ @implementation MBMrtdRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.mrzImage] forKey:@"mrzImage"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; return jsonResult; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.h deleted file mode 100644 index e367de2..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPaymentCardBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.m deleted file mode 100644 index f1b89a7..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardBackRecognizerWrapper.m +++ /dev/null @@ -1,75 +0,0 @@ -#import "MBPaymentCardBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBPaymentCardBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"PaymentCardBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPaymentCardBackRecognizer *recognizer = [[MBPaymentCardBackRecognizer alloc] init]; - { - id anonymizeCvv = [jsonRecognizer valueForKey:@"anonymizeCvv"]; - if (anonymizeCvv != nil) { - recognizer.anonymizeCvv = [(NSNumber *)anonymizeCvv boolValue]; - } - } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractInventoryNumber = [jsonRecognizer valueForKey:@"extractInventoryNumber"]; - if (extractInventoryNumber != nil) { - recognizer.extractInventoryNumber = [(NSNumber *)extractInventoryNumber boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBPaymentCardBackRecognizer (JsonSerialization) -@end - -@implementation MBPaymentCardBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cvv forKey:@"cvv"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.inventoryNumber forKey:@"inventoryNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.h deleted file mode 100644 index 6ed57d7..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPaymentCardCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.h b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.h deleted file mode 100644 index 19a5524..0000000 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPaymentCardFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPaymentCardFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m index 6112da6..892d985 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m @@ -22,6 +22,18 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; } } + { + id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; + if (fullDocumentImageDpi != nil) { + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + } + } + { + id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; + if (fullDocumentImageExtensionFactors != nil) { + recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; + } + } { id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; if (returnFullDocumentImage != nil) { @@ -41,21 +53,8 @@ @implementation MBPolandIdBackRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeNSDate:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeNSDate:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.documentCode forKey:@"documentCode"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuer forKey:@"issuer"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzParsed] forKey:@"mrzParsed"]; - [jsonResult setValue:self.result.mrzText forKey:@"mrzText"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.opt1 forKey:@"opt1"]; - [jsonResult setValue:self.result.opt2 forKey:@"opt2"]; - [jsonResult setValue:self.result.primaryId forKey:@"primaryId"]; - [jsonResult setValue:self.result.secondaryId forKey:@"secondaryId"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; + [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; return jsonResult; } diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m index 3d70d2a..3c45277 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m @@ -58,6 +58,24 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; } } + { + id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; + if (faceImageDpi != nil) { + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + } + } + { + id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; + if (fullDocumentImageDpi != nil) { + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + } + } + { + id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; + if (fullDocumentImageExtensionFactors != nil) { + recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; + } + } { id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; if (returnFaceImage != nil) { @@ -83,7 +101,7 @@ @implementation MBPolandIdFrontRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeNSDate:self.result.dateOfBirth] forKey:@"dateOfBirth"]; + [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:self.result.familyName forKey:@"familyName"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m index af70c23..869c022 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m @@ -52,6 +52,12 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold unsignedIntegerValue]; } } + { + id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; + if (fullDocumentImageExtensionFactors != nil) { + recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; + } + } return recognizer; } diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index 519e875..b1cd5b6 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -371,6 +371,68 @@ var DocumentFaceDetectorType = Object.freeze( */ BlinkID.prototype.DocumentFaceDetectorType = DocumentFaceDetectorType; +/** + * Supported BlinkCard card issuer values. + */ +BlinkID.prototype.CardIssuer = Object.freeze( + { + /** Unidentified Card */ + Other: 1, + /** The American Express Company Card */ + AmericanExpress: 2, + /** The Bank of Montreal ABM Card */ + BmoAbm: 3, + /** China T-Union Transportation Card */ + ChinaTUnion: 4, + /** China UnionPay Card */ + ChinaUnionPay: 5, + /** Canadian Imperial Bank of Commerce Advantage Debit Card */ + CibcAdvantageDebit: 6, + /** CISS Card */ + Ciss: 7, + /** Diners Club International Card */ + DinersClubInternational: 8, + /** Diners Club United States & Canada Card */ + DinersClubUsCanada: 9, + /** Discover Card */ + DiscoverCard: 10, + /** HSBC Bank Canada Card */ + Hsbc: 11, + /** RuPay Card */ + RuPay: 12, + /** InterPayment Card */ + InterPayment: 13, + /** InstaPayment Card */ + InstaPayment: 14, + /** The JCB Company Card */ + Jcb: 15, + /** Laser Debit Card (deprecated) */ + Laser: 16, + /** Maestro Debit Card */ + Maestro: 17, + /** Dankort Card */ + Dankort: 18, + /** MIR Card */ + Mir: 19, + /** MasterCard Inc. Card */ + MasterCard: 20, + /** The Royal Bank of Canada Client Card */ + RbcClient: 21, + /** ScotiaBank Scotia Card */ + ScotiaBank: 22, + /** TD Canada Trust Access Card */ + TdCtAccess: 23, + /** Troy Card */ + Troy: 24, + /** Visa Inc. Card */ + Visa: 25, + /** Universal Air Travel Plan Inc. Card */ + Uatp: 26, + /** Interswitch Verve Card */ + Verve: 27 + } +); + /** * Extension factors relative to corresponding dimension of the full image. For example, * upFactor and downFactor define extensions relative to image height, e.g. @@ -465,6 +527,29 @@ DocumentVerificationOverlaySettings.prototype = new OverlaySettings(); BlinkID.prototype.DocumentVerificationOverlaySettings = DocumentVerificationOverlaySettings; +/** + * Class for setting up BlinkCard overlay. + * BlinkCard overlay is best suited for scanning payment cards. + */ +function BlinkCardOverlaySettings() { + OverlaySettings.call(this, 'BlinkCardOverlaySettings'); + /** + * String: user instructions that are shown above camera preview while the first side of the + * document is being scanned. + * If null, default value will be used. + */ + this.firstSideInstructions = null; + /** + * String: user instructions that are shown above camera preview while the second side of the + * document is being scanned. + * If null, default value will be used. + */ + this.secondSideInstructions = null; +} +BlinkCardOverlaySettings.prototype = new OverlaySettings(); + +BlinkID.prototype.BlinkCardOverlaySettings = BlinkCardOverlaySettings; + // OVERLAY SETTINGS // RECOGNIZERS @@ -517,7 +602,7 @@ function AustraliaDlBackRecognizerResult(nativeResult) { this.address = nativeResult.address; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -549,60 +634,42 @@ function AustraliaDlBackRecognizer() { Recognizer.call(this, 'AustraliaDlBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of the Australia DL owner should be extracted - * - * + * Defines if address of the Australia DL owner should be extracted */ this.extractAddress = true; /** - * Defines if last name of the Australia DL owner should be extracted - * - * + * Defines if last name of the Australia DL owner should be extracted */ this.extractLastName = true; /** - * Defines if the licence number of the Australia DL should be extracted - * - * + * Defines if the licence number of the Australia DL should be extracted */ this.extractLicenceNumber = true; /** - * Defines if date of expiry of the Australia DL should be extracted - * - * + * Defines if date of expiry of the Australia DL should be extracted */ this.extractLicenseExpiry = 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; @@ -631,12 +698,12 @@ function AustraliaDlFrontRecognizerResult(nativeResult) { this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * 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; @@ -661,7 +728,7 @@ function AustraliaDlFrontRecognizerResult(nativeResult) { this.licenceType = nativeResult.licenceType; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -678,90 +745,62 @@ function AustraliaDlFrontRecognizer() { Recognizer.call(this, 'AustraliaDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Australian DL owner should be extracted - * - * + * Defines if address of Australian DL owner should be extracted */ this.extractAddress = true; /** - * Defines if date of birth of Australian DL owner should be extracted - * - * + * Defines if date of birth of Australian DL owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if full name of Australian DL owner should be extracted - * - * + * Defines if full name of Australian DL owner should be extracted */ this.extractFullName = true; /** - * Defines if date of expiry of Australian DL should be extracted - * - * + * Defines if date of expiry of Australian DL should be extracted */ this.extractLicenseExpiry = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -780,116 +819,112 @@ function AustriaCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Austrian ID owner + * The date of birth of the document owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Austrian ID + * The date of expiry of the document */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issuance of the Austrian ID + * The date of issuance of the document */ this.dateOfIssuance = nativeResult.dateOfIssuance != null ? new Date(nativeResult.dateOfIssuance) : 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * The document number of the Austrian ID. + * The document number */ this.documentNumber = nativeResult.documentNumber; /** - * The eye eyeColour of Austrian ID owner. + * The eye colour of the document holder. */ this.eyeColour = nativeResult.eyeColour; /** - * 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; /** - * The gien name of the Austrian ID owner. + * The given name of the document owner */ this.givenName = nativeResult.givenName; /** - * The height of Austrian ID owner. + * The height of the document holder in centimeters */ this.height = nativeResult.height; /** - * The issuing authority of Austrian ID. + * The issuing authority of the document */ this.issuingAuthority = nativeResult.issuingAuthority; /** - * Whether check digits in machine readable zone of the Austrian ID are OK. + * Determines if all check digits inside MRZ are correct */ this.mrtdVerified = nativeResult.mrtdVerified; /** - * The nationaliy of the Austrian ID owner. + * The nationality of the document owner */ this.nationality = nativeResult.nationality; /** - * The place of birth of the Austrian ID owner. + * The place of birth of the document holder */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * The principal residence of the Austrian ID owner. + * The principal residence at issuance of the document holder. */ this.principalResidence = nativeResult.principalResidence; /** - * 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; /** - * The sex of the Austrian ID owner. + * The sex of the document owner */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The surname of the Austrian ID owner. + * The surname of the document owner */ this.surname = nativeResult.surname; @@ -900,168 +935,118 @@ AustriaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.AustriaCombinedRecognizerResult = AustriaCombinedRecognizerResult; /** - * Austrian ID Combined Recognizer. - * - * Austrian ID Combined recognizer is used for scanning both front and back side of Austrian ID. + * Recognizer which can scan Austrian national ID card and passport. */ function AustriaCombinedRecognizer() { Recognizer.call(this, 'AustriaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if ownder's date of birth should be extracted - * - * + * Defines if date of birth of Austrian ID owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Austrian Passport - * - * + * Defines if date of expiry of Austrian passport should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if date of issuance should be extracted from back side of Austrian ID - * - * + * Defines if date of issuance should be extracted */ this.extractDateOfIssuance = true; /** - * Defines if date of issue should be extracted from Austrian Passport - * - * + * Defines if date of issue of Austrian passport should be extracted */ this.extractDateOfIssue = true; /** - * Defines if owner's given name should be extracted - * - * + * Defines if given name of Austrian ID owner should be extracted */ this.extractGivenName = true; /** - * Defines if owner's height should be extracted - * - * + * Defines if height of Austrian ID owner should be extracted */ this.extractHeight = true; /** - * Defines if issuing authority should be extracted - * - * + * Defines if issuing authority should be extracted */ this.extractIssuingAuthority = true; /** - * Defines if owner's nationality should be extracted from Austrian Passport - * - * + * Defines if nationality of the Austrian passport owner should be extracted */ this.extractNationality = false; /** - * Defines if passport number should be extracted from Austrian Passport - * - * + * Defines if passport number of Austrian passport should be extracted */ this.extractPassportNumber = true; /** - * Defines if owner's place of birth should be extracted - * - * + * Defines if place of birth of Austrian ID owner should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if owner's principal residence should be extracted from back side of Austrian ID - * - * + * Defines if principal residence of Austrian ID owner should be extracted */ this.extractPrincipalResidence = true; /** - * Defines if owner's sex should be extracted - * - * + * Defines if sex of Austrian ID owner should be extracted */ this.extractSex = true; /** - * Defines if owner's surname should be extracted - * - * + * Defines if surname of Austrian ID owner should be extracted */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -1080,62 +1065,62 @@ function AustriaDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date Of Birth of the front side of the Austria Dl owner. + * The date of birth of the Austrian DL owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date Of Expiry of the front side of the Austria Dl owner. + * The date of expiry of the Austrian DL. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date Of Issue of the front side of the Austria Dl owner. + * The date of issue of the Austrian DL. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The first Name of the front side of the Austria Dl owner. + * The first name of the Austrian DL owner. */ this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The issuing Authority of the front side of the Austria Dl owner. + * The issuing authority of the Austrian DL. */ this.issuingAuthority = nativeResult.issuingAuthority; /** - * The licence Number of the front side of the Austria Dl owner. + * The licence number of the Austrian DL. */ this.licenceNumber = nativeResult.licenceNumber; /** - * The name of the front side of the Austria Dl owner. + * The name of the Austrian DL owner. */ this.name = nativeResult.name; /** - * The place Of Birth of the front side of the Austria Dl owner. + * The place of birth of the Austrian DL owner. */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The vehicle Categories of the front side of the Austria Dl owner. + * The vehicle categories of the Austrian DL. */ this.vehicleCategories = nativeResult.vehicleCategories; @@ -1152,118 +1137,82 @@ function AustriaDlFrontRecognizer() { Recognizer.call(this, 'AustriaDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of Austrian DL owner should be extracted. - * - * + * Defines if date of birth of Austrian DL owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if date of expiry of Austrian DL should be extracted. - * - * + * Defines if date of expiry of Austrian DL should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if date of issue of Austrian DL should be extracted. - * - * + * Defines if date of issue of Austrian DL should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if first name of Austrian DL owner should be extracted. - * - * + * Defines if first name of Austrian DL owner should be extracted. */ this.extractFirstName = true; /** - * Defines if issuing authority of Austrian DL should be extracted. - * - * + * Defines if issuing authority of Austrian DL should be extracted. */ this.extractIssuingAuthority = true; /** - * Defines if name of Austrian DL owner should be extracted. - * - * + * Defines if name of Austrian DL owner should be extracted. */ this.extractName = true; /** - * Defines if place of birth of Austrian DL owner should be extracted. - * - * + * Defines if place of birth of Austrian DL owner should be extracted. */ this.extractPlaceOfBirth = true; /** - * Defines if vehicle categories of Austrian DL should be extracted. - * - * + * Defines if vehicle categories of Austrian DL should be extracted. */ this.extractVehicleCategories = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -1282,47 +1231,47 @@ function AustriaIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The Date Of Issuance of Austrian ID. + * The date of issuance of the ID */ this.dateOfIssuance = nativeResult.dateOfIssuance != null ? new Date(nativeResult.dateOfIssuance) : null; /** - * The Document Number of Austrian ID. + * The document number of Austrian ID */ this.documentNumber = nativeResult.documentNumber; /** - * The Eye Colour of Austrian ID owner. + * The eye colour of the card holder. */ this.eyeColour = nativeResult.eyeColour; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The Height of Austrian ID owner. + * The height of the cardholder in centimeters */ this.height = nativeResult.height; /** - * The Issuing Authority of Austrian ID. + * The issuing authority of Austrian ID */ this.issuingAuthority = nativeResult.issuingAuthority; /** - * The mrz on the back side of Austrian ID. + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * The Place Of Birth of Austrian ID owner. + * The place of birth of the card holder */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * The Principal Residence of Austrian ID owner. + * The principal residence at issuance of the card holder. */ this.principalResidence = nativeResult.principalResidence; @@ -1333,75 +1282,53 @@ AustriaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultS BlinkID.prototype.AustriaIdBackRecognizerResult = AustriaIdBackRecognizerResult; /** - * Class for configuring Austrian ID Back Recognizer. - * - * Austrian ID Back recognizer is used for scanning back side of Austrian ID. + * Recognizer which can scan back side of Austrian national ID cards. */ function AustriaIdBackRecognizer() { Recognizer.call(this, 'AustriaIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of issuance should be extracted from back side of Austrian ID - * - * + * Defines if date of issuance should be extracted */ this.extractDateOfIssuance = true; /** - * Defines if owner's height should be extracted from back side of Austrian ID - * - * + * Defines if height of Austrian ID owner should be extracted */ this.extractHeight = true; /** - * Defines if issuing authority should be extracted from back side of Austrian ID - * - * + * Defines if issuing authority should be extracted */ this.extractIssuingAuthority = true; /** - * Defines if owner's place of birth should be extracted from back side of Austrian ID - * - * + * Defines if place of birth of Austrian ID owner should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if owner's principal residence should be extracted from back side of Austrian ID - * - * + * Defines if principal residence of Austrian ID owner should be extracted */ this.extractPrincipalResidence = 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; @@ -1420,42 +1347,42 @@ function AustriaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of the Austrian Id owner. + * The date of birth of Austrian ID owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The document number of the Austrian Id. + * The document number of Austrian ID */ this.documentNumber = nativeResult.documentNumber; /** - * 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; /** - * The first name of the Austrian Id owner. + * The given name of the Austrian ID owner */ this.givenName = nativeResult.givenName; /** - * The sex of the Austrian Id owner. + * The sex of the Austrian ID owner */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The last name of the Austrian Id owner. + * The surname of the Austrian ID owner. */ this.surname = nativeResult.surname; @@ -1466,98 +1393,68 @@ AustriaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResult BlinkID.prototype.AustriaIdFrontRecognizerResult = AustriaIdFrontRecognizerResult; /** - * Class for configuring Austrian ID Front Recognizer. - * - * Aus ID Front recognizer is used for scanning front side of Austrian Id. + * Recognizer which can scan front side of Austrian national ID cards. */ function AustriaIdFrontRecognizer() { Recognizer.call(this, 'AustriaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth should be extracted from Austrian ID - * - * + * Defines if date of birth of Austrian ID owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if given name of Austrian Id owner should be extracted - * - * + * Defines if given name of Austrian ID owner should be extracted */ this.extractGivenName = true; /** - * Defines if sex of Austrian Id owner should be extracted - * - * + * Defines if sex of Austrian ID owner should be extracted */ this.extractSex = true; /** - * Defines if surname of Austrian Id owner should be extracted - * - * + * Defines if surname of Austrian ID owner should be extracted */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -1576,77 +1473,77 @@ function AustriaPassportRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date Of Birth of the Austrian Passport owner. + * The date of birth of Austrian passport owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date Of Expiry of the Austrian Passport. + * The date of expiry of Austrian passport */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date Of Issue of the Austrian Passport. + * The date of issue of Austrian passport */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * 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; /** - * The given Name of the Austrian Passport owner. + * The given name of the Austrian passport owner */ this.givenName = nativeResult.givenName; /** - * The height of the Austrian Passport owner. + * The height of the passport owner in centimeters */ this.height = nativeResult.height; /** - * The issuing Authority of the Austrian Passport. + * The issuing authority of the Austrian passport */ this.issuingAuthority = nativeResult.issuingAuthority; /** - * The mrz of the back side of Austria Passport. + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * The nationality of the Austrian Passport owner. + * The nationality of the Austrian passport owner */ this.nationality = nativeResult.nationality; /** - * The passport Number of the Austrian Passport. + * The passport number of the Austrian passport */ this.passportNumber = nativeResult.passportNumber; /** - * The place Of Birth of the Austrian Passport owner. + * The place of birth of the Austrian passport owner */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * The sex of the Austrian Passport owner. + * The sex of the Austrian passport owner */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The surname of the Austrian Passport owner. + * The surname of the Austrian passport owner. */ this.surname = nativeResult.surname; @@ -1657,147 +1554,103 @@ AustriaPassportRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.AustriaPassportRecognizerResult = AustriaPassportRecognizerResult; /** - * Class for configuring Austrian Passport Recognizer. - * - * Austrian Passport recognizer is used for scanning Austrian Passport. + * Recognizer which can scan Austrian passport. */ function AustriaPassportRecognizer() { Recognizer.call(this, 'AustriaPassportRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's date of birth should be extracted from Austrian Passport - * - * + * Defines if date of birth of Austrian passport owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Austrian Passport - * - * + * Defines if date of expiry of Austrian passport should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if date of issue should be extracted from Austrian Passport - * - * + * Defines if date of issue of Austrian passport should be extracted */ this.extractDateOfIssue = true; /** - * Defines if owner's given name should be extracted from Austrian Passport - * - * + * Defines if given name of Austrian passport owner should be extracted */ this.extractGivenName = true; /** - * Defines if owner's height should be extracted from Austrian Passport - * - * + * Defines if height of Austrian passport owner should be extracted */ this.extractHeight = true; /** - * Defines if issuing authority should be extracted from Austrian Passport - * - * + * Defines if issuing authority of Austrian passport should be extracted */ this.extractIssuingAuthority = true; /** - * Defines if owner's nationality should be extracted from Austrian Passport - * - * + * Defines if nationality of the Austrian passport owner should be extracted */ this.extractNationality = false; /** - * Defines if passport number should be extracted from Austrian Passport - * - * + * Defines if passport number of Austrian passport should be extracted */ this.extractPassportNumber = true; /** - * Defines if owner's place of birth should be extracted from Austrian Passport - * - * + * Defines if place of birth of Austrian passport owner should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if owner's sex should be extracted from Austrian Passport - * - * + * Defines if sex of Austrian passport owner should be extracted */ this.extractSex = true; /** - * Defines if owner's surname should be extracted from Austrian Passport - * - * + * Defines if surname of Austrian passport owner should be extracted */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -1816,25 +1669,22 @@ function BarcodeRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Type of the barcode scanned - * - * @return Type of the barcode + * The format of the scanned barcode. */ this.barcodeType = nativeResult.barcodeType; /** - * Byte array with result of the scan + * The raw bytes contained inside barcode. */ this.rawData = nativeResult.rawData; /** - * 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; @@ -1845,142 +1695,93 @@ BarcodeRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.e BlinkID.prototype.BarcodeRecognizerResult = BarcodeRecognizerResult; /** - * BarcodeRecognizer is used for scanning most of 1D barcode formats, and 2D format - * such as Aztec, DataMatrix and QR code + * Recognizer that can perform recognition of any supported barcode type. */ function BarcodeRecognizer() { Recognizer.call(this, 'BarcodeRecognizer'); /** - * Allow enabling the autodetection of image scale when scanning barcodes. - * If set to true, prior reading barcode, image scale will be - * corrected. This enabled correct reading of barcodes on high - * resolution images but slows down the recognition process. - * - * falseTE: This setting is applied only for Code39 and Code128 barcode scanning. - * - * + * Allow enabling the autodetection of image scale when scanning barcodes. */ this.autoScaleDetection = true; /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * + * Allow scanning PDF417 barcodes which don't have quiet zone */ this.nullQuietZoneAllowed = false; /** - * Enable reading code39 barcode contents as extended data. For more information about code39 - * extended data (a.k.a. full ASCII mode), see https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39 - * - * + * Enable reading code39 barcode contents as extended data. For more information about code39 */ this.readCode39AsExtendedData = false; /** - * Set this to true to scan Aztec 2D barcodes - * - * + * Should Aztec 2D barcode be scanned. */ this.scanAztecCode = false; /** - * Set this to true to scan Code 128 1D barcodes - * - * + * Should Code128 barcode be scanned. */ this.scanCode128 = false; /** - * Set this to true to scan Code 39 1D barcodes - * - * + * Should Code39 barcode be scanned. */ this.scanCode39 = false; /** - * Set this to true to scan DataMatrix 2D barcodes - * - * + * Should DataMatrix 2D barcode be scanned. */ this.scanDataMatrix = false; /** - * Set this to true to scan EAN 13 barcodes - * - * + * Should EAN13 barcode be scanned. */ this.scanEan13 = false; /** - * Set this to true to scan EAN8 barcodes - * - * + * Should EAN8 barcode be scanned. */ this.scanEan8 = false; /** - * Set this to true to allow scanning barcodes with inverted intensities - * (i.e. white barcodes on black background) - * - * falseTE: this options doubles the frame processing time - * - * + * Enables scanning of barcodes with inverse intensity values (e.g. white barcode on black background) */ this.scanInverse = false; /** - * Set this to true to scan ITF barcodes - * - * + * Should ITF barcode be scanned. */ this.scanItf = false; /** - * Set this to true to scan Pdf417 barcodes - * - * + * Should PDF417 2D barcode be scanned. */ this.scanPdf417 = false; /** - * Set this to true to scan QR barcodes - * - * + * Should QR code be scanned. */ this.scanQrCode = false; /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * + * Enable decoding of non-standard PDF417 barcodes, but without */ this.scanUncertain = true; /** - * Set this to true to scan UPCA barcodes - * - * + * Should UPCA barcode be scanned. */ this.scanUpca = false; /** - * Set this to true to scan UPCE barcodes - * - * + * Should UPCE barcode be scanned. */ this.scanUpce = false; /** - * Set this to true to allow slower, but better image processing. - * - * + * Enable slower, but more thorough scanning, thus giving higher possibility of successful scan. */ this.slowerThoroughScan = true; @@ -1993,259 +1794,305 @@ BarcodeRecognizer.prototype = new Recognizer('BarcodeRecognizer'); BlinkID.prototype.BarcodeRecognizer = BarcodeRecognizer; /** - * Result object for BruneiIdBackRecognizer. + * Result object for BlinkCardEliteRecognizer. */ -function BruneiIdBackRecognizerResult(nativeResult) { +function BlinkCardEliteRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of Brunei ID owner. + * The payment card number. */ - this.address = nativeResult.address; + this.cardNumber = nativeResult.cardNumber; /** - * The date of issue of Brunei ID. + * Payment card's security code/value. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.cvv = nativeResult.cvv; /** - * full document image if enabled with returnFullDocumentImage property. + * Defines digital signature of recognition results. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.digitalSignature = nativeResult.digitalSignature; /** - * The data extracted from the machine readable zone. + * Defines digital signature version. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * The race of Brunei ID owner. + * Defines {true} if data from scanned parts/sides of the document match, */ - this.race = nativeResult.race; + this.documentDataMatch = nativeResult.documentDataMatch; + + /** + * Back side image of the document + */ + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + + /** + * Front side image of the document + */ + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + + /** + * Payment card's inventory number. + */ + this.inventoryNumber = nativeResult.inventoryNumber; + + /** + * Information about the payment card owner (name, company, etc.) + */ + this.owner = nativeResult.owner; + + /** + * {true} if recognizer has finished scanning first side and is now scanning back side, + */ + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + + /** + * The payment card's last month of validity. + */ + this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; } -BruneiIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BlinkCardEliteRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.BruneiIdBackRecognizerResult = BruneiIdBackRecognizerResult; +BlinkID.prototype.BlinkCardEliteRecognizerResult = BlinkCardEliteRecognizerResult; /** - * Recognizer which can scan back side of Brunei national ID cards. + * Recognizer used for scanning both sides of elite payment cards. */ -function BruneiIdBackRecognizer() { - Recognizer.call(this, 'BruneiIdBackRecognizer'); +function BlinkCardEliteRecognizer() { + Recognizer.call(this, 'BlinkCardEliteRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Should anonymize the card number area (redact image pixels) on the document image result + */ + this.anonymizeCardNumber = false; + + /** + * Should anonymize the CVV area (redact image pixels) on the document image result + */ + this.anonymizeCvv = false; + + /** + * Should anonymize the owner area (redact image pixels) on the document image result + */ + this.anonymizeOwner = false; + + /** + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Brunei ID owner should be extracted. - * - * + * Should extract the card's inventory number */ - this.extractAddress = true; + this.extractInventoryNumber = true; /** - * Defines if date of issue of Brunei ID should be extracted. - * - * + * Should extract the card owner information */ - this.extractDateOfIssue = true; + this.extractOwner = true; /** - * Defines if the race of Brunei ID owner should be extracted. - * - * + * Should extract the payment card's month of expiry */ - this.extractRace = true; + this.extractValidThru = 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; - this.createResultFromNative = function (nativeResult) { return new BruneiIdBackRecognizerResult(nativeResult); } + /** + * Defines whether or not recognition result should be signed. + */ + this.signResult = false; + + this.createResultFromNative = function (nativeResult) { return new BlinkCardEliteRecognizerResult(nativeResult); } } -BruneiIdBackRecognizer.prototype = new Recognizer('BruneiIdBackRecognizer'); +BlinkCardEliteRecognizer.prototype = new Recognizer('BlinkCardEliteRecognizer'); -BlinkID.prototype.BruneiIdBackRecognizer = BruneiIdBackRecognizer; +BlinkID.prototype.BlinkCardEliteRecognizer = BlinkCardEliteRecognizer; /** - * Result object for BruneiIdFrontRecognizer. + * Result object for BlinkCardRecognizer. */ -function BruneiIdFrontRecognizerResult(nativeResult) { +function BlinkCardRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Brunei ID owner. + * The payment card number. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.cardNumber = nativeResult.cardNumber; /** - * The document number of Brunei ID. + * Payment card's security code/value. */ - this.documentNumber = nativeResult.documentNumber; + this.cvv = nativeResult.cvv; /** - * face image from the document if enabled with returnFaceImage property. + * Defines digital signature of recognition results. */ - this.faceImage = nativeResult.faceImage; + this.digitalSignature = nativeResult.digitalSignature; /** - * full document image if enabled with returnFullDocumentImage property. + * Defines digital signature version. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * The full name of Brunei ID owner. + * Defines {true} if data from scanned parts/sides of the document match, */ - this.fullName = nativeResult.fullName; + this.documentDataMatch = nativeResult.documentDataMatch; /** - * The place of birth of Brunei ID owner. + * Back side image of the document */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * The sex of Brunei ID owner. + * Front side image of the document */ - this.sex = nativeResult.sex; + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + + /** + * Payment card's inventory number. + */ + this.inventoryNumber = nativeResult.inventoryNumber; + + /** + * The payment card's issuing network. + */ + this.issuer = nativeResult.issuer; + + /** + * Information about the payment card owner (name, company, etc.) + */ + this.owner = nativeResult.owner; + + /** + * {true} if recognizer has finished scanning first side and is now scanning back side, + */ + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + + /** + * The payment card's last month of validity. + */ + this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; } -BruneiIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BlinkCardRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.BruneiIdFrontRecognizerResult = BruneiIdFrontRecognizerResult; +BlinkID.prototype.BlinkCardRecognizerResult = BlinkCardRecognizerResult; /** - * Recognizer which can scan front side of yellow version of Brunei ID. + * Recognizer used for scanning both sides of payment cards. */ -function BruneiIdFrontRecognizer() { - Recognizer.call(this, 'BruneiIdFrontRecognizer'); +function BlinkCardRecognizer() { + Recognizer.call(this, 'BlinkCardRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Should anonymize the card number area (redact image pixels) on the document image result */ - this.detectGlare = true; + this.anonymizeCardNumber = false; /** - * Defines if date of birth of Brunei ID owner should be extracted. - * - * + * Should anonymize the CVV area (redact image pixels) on the document image result */ - this.extractDateOfBirth = true; + this.anonymizeCvv = false; /** - * Defines if full name of Brunei ID owner should be extracted. - * - * + * Should anonymize the owner area (redact image pixels) on the document image result */ - this.extractFullName = true; + this.anonymizeOwner = false; /** - * Defines if place of birth of Brunei ID owner should be extracted. - * - * + * Defines whether glare detector is enabled. */ - this.extractPlaceOfBirth = true; + this.detectGlare = true; /** - * Defines if sex of Brunei ID owner should be extracted. - * - * + * Should extract the card CVV */ - this.extractSex = true; + this.extractCvv = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Should extract the card's inventory number */ - this.faceImageDpi = 250; + this.extractInventoryNumber = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Should extract the card owner information */ - this.fullDocumentImageDpi = 250; + this.extractOwner = false; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Should extract the payment card's month of expiry */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractValidThru = true; /** - * Sets whether face image from ID card should be extracted - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.returnFaceImage = false; + this.fullDocumentImageDpi = 250; /** - * Sets whether full document image of ID card should be extracted. - * - * + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new BruneiIdFrontRecognizerResult(nativeResult); } + /** + * Defines whether or not recognition result should be signed. + */ + this.signResult = false; + + this.createResultFromNative = function (nativeResult) { return new BlinkCardRecognizerResult(nativeResult); } } -BruneiIdFrontRecognizer.prototype = new Recognizer('BruneiIdFrontRecognizer'); +BlinkCardRecognizer.prototype = new Recognizer('BlinkCardRecognizer'); -BlinkID.prototype.BruneiIdFrontRecognizer = BruneiIdFrontRecognizer; +BlinkID.prototype.BlinkCardRecognizer = BlinkCardRecognizer; /** - * Result object for BruneiResidencePermitBackRecognizer. + * Result object for BruneiIdBackRecognizer. */ -function BruneiResidencePermitBackRecognizerResult(nativeResult) { +function BruneiIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of Brunei Residence Permit card owner. + * The address of Brunei ID owner. */ this.address = nativeResult.address; /** - * The date of issue of Brunei Residence Permit card. + * The date of issue of Brunei ID. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -2255,997 +2102,902 @@ function BruneiResidencePermitBackRecognizerResult(nativeResult) { this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * The race of Brunei Residence Permit card owner. + * The race of Brunei ID owner. */ this.race = nativeResult.race; } -BruneiResidencePermitBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BruneiIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.BruneiResidencePermitBackRecognizerResult = BruneiResidencePermitBackRecognizerResult; +BlinkID.prototype.BruneiIdBackRecognizerResult = BruneiIdBackRecognizerResult; /** - * Recognizer which can scan back side of Brunei national Residence Permit cards. + * Recognizer which can scan back side of Brunei national ID cards. */ -function BruneiResidencePermitBackRecognizer() { - Recognizer.call(this, 'BruneiResidencePermitBackRecognizer'); +function BruneiIdBackRecognizer() { + Recognizer.call(this, 'BruneiIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Brunei Residence Permit card owner should be extracted. - * - * + * Defines if address of Brunei ID owner should be extracted. */ this.extractAddress = true; /** - * Defines if date of issue of Brunei Residence Permit card should be extracted. - * - * + * Defines if date of issue of Brunei ID should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if the race of Brunei Residence Permit card owner should be extracted. - * - * + * Defines if the race of Brunei ID owner should be extracted. */ this.extractRace = 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; - this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitBackRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new BruneiIdBackRecognizerResult(nativeResult); } } -BruneiResidencePermitBackRecognizer.prototype = new Recognizer('BruneiResidencePermitBackRecognizer'); +BruneiIdBackRecognizer.prototype = new Recognizer('BruneiIdBackRecognizer'); -BlinkID.prototype.BruneiResidencePermitBackRecognizer = BruneiResidencePermitBackRecognizer; +BlinkID.prototype.BruneiIdBackRecognizer = BruneiIdBackRecognizer; /** - * Result object for BruneiResidencePermitFrontRecognizer. + * Result object for BruneiIdFrontRecognizer. */ -function BruneiResidencePermitFrontRecognizerResult(nativeResult) { +function BruneiIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Brunei residence permit owner. + * The date of birth of Brunei ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The document number of Brunei residence permit. + * The document number of Brunei ID. */ this.documentNumber = nativeResult.documentNumber; /** - * 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; /** - * The full name of Brunei residence permit owner. + * The full name of Brunei ID owner. */ this.fullName = nativeResult.fullName; /** - * The place of birth of Brunei residence permit owner. + * The country of birth of Brunei ID owner. */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * The sex of Brunei residence permit owner. + * The sex of Brunei ID owner. */ this.sex = nativeResult.sex; } -BruneiResidencePermitFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BruneiIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.BruneiResidencePermitFrontRecognizerResult = BruneiResidencePermitFrontRecognizerResult; +BlinkID.prototype.BruneiIdFrontRecognizerResult = BruneiIdFrontRecognizerResult; /** - * Recognizer which can scan front side of Brunei residence permits. + * Recognizer which can scan front side of Brunei ID. */ -function BruneiResidencePermitFrontRecognizer() { - Recognizer.call(this, 'BruneiResidencePermitFrontRecognizer'); +function BruneiIdFrontRecognizer() { + Recognizer.call(this, 'BruneiIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of Brunei residence permit owner should be extracted. - * - * + * Defines if date of birth of Brunei ID owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if full name of Brunei residence permit owner should be extracted. - * - * + * Defines if full name of Brunei ID owner should be extracted. */ this.extractFullName = true; /** - * Defines if place of birth of Brunei residence permit owner should be extracted. - * - * + * Defines if country of birth of Brunei ID owner should be extracted. */ this.extractPlaceOfBirth = true; /** - * Defines if sex of Brunei residence permit owner should be extracted. - * - * + * Defines if sex of Brunei ID owner should be extracted. */ this.extractSex = 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; - this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new BruneiIdFrontRecognizerResult(nativeResult); } } -BruneiResidencePermitFrontRecognizer.prototype = new Recognizer('BruneiResidencePermitFrontRecognizer'); +BruneiIdFrontRecognizer.prototype = new Recognizer('BruneiIdFrontRecognizer'); -BlinkID.prototype.BruneiResidencePermitFrontRecognizer = BruneiResidencePermitFrontRecognizer; +BlinkID.prototype.BruneiIdFrontRecognizer = BruneiIdFrontRecognizer; /** - * Result object for ColombiaDlFrontRecognizer. + * Result object for BruneiResidencePermitBackRecognizer. */ -function ColombiaDlFrontRecognizerResult(nativeResult) { +function BruneiResidencePermitBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date Of Birth of the front side of the Colombia Dl owner. + * The address of Brunei Residence Permit card owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.address = nativeResult.address; /** - * The date Of Issue of the front side of the Colombia Dl owner. + * The date of issue of Brunei Residence Permit card. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The driver Restrictions of the front side of the Colombia Dl owner. - */ - this.driverRestrictions = nativeResult.driverRestrictions; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The issuing Agency of the front side of the Colombia Dl owner. - */ - this.issuingAgency = nativeResult.issuingAgency; - - /** - * The licence Number of the front side of the Colombia Dl owner. + * The data extracted from the machine readable zone. */ - this.licenceNumber = nativeResult.licenceNumber; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * The name of the front side of the Colombia Dl owner. + * The race of Brunei Residence Permit card owner. */ - this.name = nativeResult.name; + this.race = nativeResult.race; } -ColombiaDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BruneiResidencePermitBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ColombiaDlFrontRecognizerResult = ColombiaDlFrontRecognizerResult; +BlinkID.prototype.BruneiResidencePermitBackRecognizerResult = BruneiResidencePermitBackRecognizerResult; /** - * Recognizer which can scan front side of Colombia drivers licence. + * Recognizer which can scan back side of Brunei national Residence Permit cards. */ -function ColombiaDlFrontRecognizer() { - Recognizer.call(this, 'ColombiaDlFrontRecognizer'); +function BruneiResidencePermitBackRecognizer() { + Recognizer.call(this, 'BruneiResidencePermitBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if the date of birth of the Colombia Dl owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if the driver restrictions of the Colombia Dl owner should be extracted. - * - * - */ - this.extractDriverRestrictions = true; - - /** - * Defines if the issuing agency of the Colombia Dl card should be extracted. - * - * + * Defines if address of Brunei Residence Permit card owner should be extracted. */ - this.extractIssuingAgency = true; + this.extractAddress = true; /** - * Defines if the name of the Colombia Dl owner should be extracted. - * - * + * Defines if date of issue of Brunei Residence Permit card should be extracted. */ - this.extractName = true; + this.extractDateOfIssue = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if the race of Brunei Residence Permit card owner should be extracted. */ - this.faceImageDpi = 250; + this.extractRace = 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 face image from ID card should be extracted - * - * - */ - 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; - this.createResultFromNative = function (nativeResult) { return new ColombiaDlFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitBackRecognizerResult(nativeResult); } } -ColombiaDlFrontRecognizer.prototype = new Recognizer('ColombiaDlFrontRecognizer'); +BruneiResidencePermitBackRecognizer.prototype = new Recognizer('BruneiResidencePermitBackRecognizer'); -BlinkID.prototype.ColombiaDlFrontRecognizer = ColombiaDlFrontRecognizer; +BlinkID.prototype.BruneiResidencePermitBackRecognizer = BruneiResidencePermitBackRecognizer; /** - * Result object for ColombiaIdBackRecognizer. + * Result object for BruneiResidencePermitFrontRecognizer. */ -function ColombiaIdBackRecognizerResult(nativeResult) { +function BruneiResidencePermitFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The birth Date of the Colombia Id owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The blood Group of the Colombia Id owner. + * The date of birth of Brunei residence permit owner. */ - this.bloodGroup = nativeResult.bloodGroup; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The document Number Colombia Id owner. + * The document number of Brunei residence permit. */ this.documentNumber = nativeResult.documentNumber; /** - * The fingerprint of the Colombian ID owner. + * Face image from the document */ - this.fingerprint = nativeResult.fingerprint; + this.faceImage = nativeResult.faceImage; /** - * The first Name of the Colombia Id owner. + * Image of the full document */ - this.firstName = nativeResult.firstName; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * full document image if enabled with returnFullDocumentImage property. + * The full name of Brunei residence permit owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.fullName = nativeResult.fullName; /** - * The last Name of the Colombia Id owner. + * The place of birth of Brunei residence permit owner. */ - this.lastName = nativeResult.lastName; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * The sex of the Colombia Id owner. + * The sex of Brunei residence permit owner. */ this.sex = nativeResult.sex; } -ColombiaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BruneiResidencePermitFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ColombiaIdBackRecognizerResult = ColombiaIdBackRecognizerResult; +BlinkID.prototype.BruneiResidencePermitFrontRecognizerResult = BruneiResidencePermitFrontRecognizerResult; /** - * Class for configuring Colombia Id Back Recognizer. - * - * Colombia Id Back recognizer is used for scanning back side of the Colombia Id. + * Recognizer which can scan front side of Brunei residence permits. */ -function ColombiaIdBackRecognizer() { - Recognizer.call(this, 'ColombiaIdBackRecognizer'); +function BruneiResidencePermitFrontRecognizer() { + Recognizer.call(this, 'BruneiResidencePermitFrontRecognizer'); /** - * 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 - * - * + * Defines if date of birth of Brunei residence permit owner should be extracted. */ - this.fullDocumentImageDpi = 250; + this.extractDateOfBirth = true; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines if full name of Brunei residence permit owner should be extracted. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractFullName = true; /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * + * Defines if place of birth of Brunei residence permit owner should be extracted. */ - this.nullQuietZoneAllowed = true; + this.extractPlaceOfBirth = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines if sex of Brunei residence permit owner should be extracted. */ - this.returnFullDocumentImage = false; + this.extractSex = true; /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.scanUncertain = true; + this.faceImageDpi = 250; - this.createResultFromNative = function (nativeResult) { return new ColombiaIdBackRecognizerResult(nativeResult); } + /** + * The DPI (Dots Per Inch) for full document image that should be returned. + */ + this.fullDocumentImageDpi = 250; + + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Defines whether face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in + */ + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitFrontRecognizerResult(nativeResult); } } -ColombiaIdBackRecognizer.prototype = new Recognizer('ColombiaIdBackRecognizer'); +BruneiResidencePermitFrontRecognizer.prototype = new Recognizer('BruneiResidencePermitFrontRecognizer'); -BlinkID.prototype.ColombiaIdBackRecognizer = ColombiaIdBackRecognizer; +BlinkID.prototype.BruneiResidencePermitFrontRecognizer = BruneiResidencePermitFrontRecognizer; /** - * Result object for ColombiaIdFrontRecognizer. + * Result object for BruneiTemporaryResidencePermitBackRecognizer. */ -function ColombiaIdFrontRecognizerResult(nativeResult) { +function BruneiTemporaryResidencePermitBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The document Number of the Colombia Id. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. + * The address of Brunei temporary residence permit owner's employer. */ - this.faceImage = nativeResult.faceImage; + this.address = nativeResult.address; /** - * The first Name of the Colombia Id owner. + * The date of issue of Brunei temporary residence permit. */ - this.firstName = nativeResult.firstName; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The last Name of the Colombia Id owner. + * The data extracted from the machine readable zone. */ - this.lastName = nativeResult.lastName; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * image of the signature if enabled with returnSignatureImage property. + * The passport number of Brunei temporary residence permit owner. */ - this.signatureImage = nativeResult.signatureImage; + this.passportNumber = nativeResult.passportNumber; } -ColombiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +BruneiTemporaryResidencePermitBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ColombiaIdFrontRecognizerResult = ColombiaIdFrontRecognizerResult; +BlinkID.prototype.BruneiTemporaryResidencePermitBackRecognizerResult = BruneiTemporaryResidencePermitBackRecognizerResult; /** - * Class for configuring Colombia Id Front Recognizer. - * - * Colombia Id Front recognizer is used for scanning front side of the Colombia Id. + * Recognizer which can scan back side of Brunei temporary residence permit cards. */ -function ColombiaIdFrontRecognizer() { - Recognizer.call(this, 'ColombiaIdFrontRecognizer'); +function BruneiTemporaryResidencePermitBackRecognizer() { + Recognizer.call(this, 'BruneiTemporaryResidencePermitBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's first name should be extracted from front side of the Colombia Id - * - * + * Defines if address of Brunei temporary residence permit owner's employer should be extracted. */ - this.extractFirstName = true; + this.extractAddress = true; /** - * Defines if owner's last name should be extracted from front side of the Colombia Id - * - * + * Defines if date of issue of Brunei temporary residence permit should be extracted. */ - this.extractLastName = true; + this.extractDateOfIssue = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if the passport number of Brunei temporary residence permit owner should be extracted. */ - this.faceImageDpi = 250; + this.extractPassportNumber = 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 face image from ID card should be extracted - * - * - */ - 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. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new ColombiaIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new BruneiTemporaryResidencePermitBackRecognizerResult(nativeResult); } } -ColombiaIdFrontRecognizer.prototype = new Recognizer('ColombiaIdFrontRecognizer'); +BruneiTemporaryResidencePermitBackRecognizer.prototype = new Recognizer('BruneiTemporaryResidencePermitBackRecognizer'); -BlinkID.prototype.ColombiaIdFrontRecognizer = ColombiaIdFrontRecognizer; +BlinkID.prototype.BruneiTemporaryResidencePermitBackRecognizer = BruneiTemporaryResidencePermitBackRecognizer; /** - * Result object for CroatiaCombinedRecognizer. + * Result object for BruneiTemporaryResidencePermitFrontRecognizer. */ -function CroatiaCombinedRecognizerResult(nativeResult) { +function BruneiTemporaryResidencePermitFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The citizenship of the Croatian ID owner. + * The address of Brunei Temporary Residence Permit owner. */ - this.citizenship = nativeResult.citizenship; + this.address = nativeResult.address; /** - * The date of birth of the Croatian ID owner. + * The date of birth of Brunei Temporary Residence Permit owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of the Croatian ID. + * The document number of Brunei Temporary Residence Permit. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.documentNumber = nativeResult.documentNumber; /** - * Determines if date of expiry of the Croatian ID is permanent. + * Face image from the document */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + this.faceImage = nativeResult.faceImage; /** - * The date of issue of Croatian ID. + * Image of the full document */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * The full name of Brunei Temporary Residence Permit owner. */ - this.digitalSignature = nativeResult.digitalSignature; + this.fullName = nativeResult.fullName; /** - * Version of the digital signature. Available only if enabled with signResult property. + * The place of birth of Brunei Temporary Residence Permit owner. */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * Determines if Croatian ID is bilingual. + * The sex of Brunei Temporary Residence Permit owner. */ - this.documentBilingual = nativeResult.documentBilingual; + this.sex = nativeResult.sex; + +} + +BruneiTemporaryResidencePermitFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.BruneiTemporaryResidencePermitFrontRecognizerResult = BruneiTemporaryResidencePermitFrontRecognizerResult; + +/** + * Recognizer which can scan front side of Brunei Temporary Residence Permit. + */ +function BruneiTemporaryResidencePermitFrontRecognizer() { + Recognizer.call(this, 'BruneiTemporaryResidencePermitFrontRecognizer'); /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines whether glare detector is enabled. */ - this.documentDataMatch = nativeResult.documentDataMatch; + this.detectGlare = true; /** - * Determines if Croatian ID is issued for non resident. + * Defines if address of Brunei Temporary Residence Permit owner should be extracted. */ - this.documentForNonResident = nativeResult.documentForNonResident; + this.extractAddress = true; /** - * The document number of the Croatian ID. + * Defines if date of birth of Brunei Temporary Residence Permit owner should be extracted. */ - this.documentNumber = nativeResult.documentNumber; + this.extractDateOfBirth = true; /** - * face image from the document if enabled with returnFaceImage property. + * Defines if full name of Brunei Temporary Residence Permit owner should be extracted. */ - this.faceImage = nativeResult.faceImage; + this.extractFullName = true; /** - * The first name of the Croatian ID owner. + * Defines if place of birth of Brunei Temporary Residence Permit owner should be extracted. */ - this.firstName = nativeResult.firstName; + this.extractPlaceOfBirth = true; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Defines if sex of Brunei Temporary Residence Permit owner should be extracted. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + this.extractSex = true; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + this.faceImageDpi = 250; /** - * The issuer of Croatian ID. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.issuedBy = nativeResult.issuedBy; + this.fullDocumentImageDpi = 250; /** - * The last name of the Croatian ID owner. + * The extension factors for full document image. */ - this.lastName = nativeResult.lastName; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Determines if all check digits inside MRZ are correct. + * Defines whether face image will be available in result. */ - this.mrzVerified = nativeResult.mrzVerified; + this.returnFaceImage = false; /** - * The OIB of Croatian ID owner. + * Defines whether full document image will be available in */ - this.oib = nativeResult.oib; + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new BruneiTemporaryResidencePermitFrontRecognizerResult(nativeResult); } + +} + +BruneiTemporaryResidencePermitFrontRecognizer.prototype = new Recognizer('BruneiTemporaryResidencePermitFrontRecognizer'); + +BlinkID.prototype.BruneiTemporaryResidencePermitFrontRecognizer = BruneiTemporaryResidencePermitFrontRecognizer; + +/** + * Result object for ColombiaDlFrontRecognizer. + */ +function ColombiaDlFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * The residence of Croatian ID owner. + * The date of birth of the Colombia Dl card owner. */ - this.residence = nativeResult.residence; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * The date of issue of the Colombia Dl card. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The sex of the Croatian ID owner. + * The driver restrictions of the Colombia Dl card owner. */ - this.sex = nativeResult.sex; + this.driverRestrictions = nativeResult.driverRestrictions; /** - * image of the signature if enabled with returnSignatureImage property. + * Face image from the document */ - this.signatureImage = nativeResult.signatureImage; + this.faceImage = nativeResult.faceImage; + + /** + * Image of the full document + */ + this.fullDocumentImage = nativeResult.fullDocumentImage; + + /** + * The issuing agency of the Colombia Dl card. + */ + this.issuingAgency = nativeResult.issuingAgency; + + /** + * The licence number of the Colombia Dl card. + */ + this.licenceNumber = nativeResult.licenceNumber; + + /** + * The name of the Colombia Dl card owner. + */ + this.name = nativeResult.name; } -CroatiaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +ColombiaDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CroatiaCombinedRecognizerResult = CroatiaCombinedRecognizerResult; +BlinkID.prototype.ColombiaDlFrontRecognizerResult = ColombiaDlFrontRecognizerResult; /** - * Recognizer which can front and back side of Croatian national ID cards. + * Recognizer which can scan front side of Colombia drivers licence. */ -function CroatiaCombinedRecognizer() { - Recognizer.call(this, 'CroatiaCombinedRecognizer'); +function ColombiaDlFrontRecognizer() { + Recognizer.call(this, 'ColombiaDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if citizenship of Croatian ID owner should be extracted - * - * - */ - this.extractCitizenship = true; - - /** - * Defines if date of birth of Croatian ID owner should be extracted - * - * + * Defines if the date of birth of the Colombia Dl owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if date of expiry of Croatian ID document should be extracted - * - * + * Defines if the driver restrictions of the Colombia Dl owner should be extracted. */ - this.extractDateOfExpiry = true; + this.extractDriverRestrictions = true; /** - * Defines if date of issue of Croatian ID should be extracted. - * - * + * Defines if the issuing agency of the Colombia Dl card should be extracted. */ - this.extractDateOfIssue = true; + this.extractIssuingAgency = true; /** - * Defines if first name of Croatian ID owner should be extracted - * - * + * Defines if the name of the Colombia Dl owner should be extracted. */ - this.extractFirstName = true; + this.extractName = true; /** - * Defines if issuer of Croatian ID should be extracted. - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.extractIssuedBy = true; + this.faceImageDpi = 250; /** - * Defines if last name of Croatian ID owner should be extracted - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.extractLastName = true; + this.fullDocumentImageDpi = 250; /** - * Defines if residence of Croatian ID owner should be extracted. - * - * + * The extension factors for full document image. */ - this.extractResidence = true; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines if sex of Croatian ID owner should be extracted - * - * + * Defines whether face image will be available in result. */ - this.extractSex = true; + this.returnFaceImage = false; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines whether full document image will be available in */ - this.faceImageDpi = 250; + this.returnFullDocumentImage = false; - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + this.createResultFromNative = function (nativeResult) { return new ColombiaDlFrontRecognizerResult(nativeResult); } + +} + +ColombiaDlFrontRecognizer.prototype = new Recognizer('ColombiaDlFrontRecognizer'); + +BlinkID.prototype.ColombiaDlFrontRecognizer = ColombiaDlFrontRecognizer; + +/** + * Result object for ColombiaIdBackRecognizer. + */ +function ColombiaIdBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); + + /** + * The birth date of Colombia ID owner. */ - this.fullDocumentImageDpi = 250; + this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The blood group of Colombia ID owner. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.bloodGroup = nativeResult.bloodGroup; /** - * Sets whether face image from ID card should be extracted - * - * + * The document number of Colombia ID. */ - this.returnFaceImage = false; + this.documentNumber = nativeResult.documentNumber; /** - * Sets whether full document image of ID card should be extracted. - * - * + * The encoded fingerprint of Colombia ID owner. */ - this.returnFullDocumentImage = false; + this.fingerprint = nativeResult.fingerprint; /** - * Sets whether signature image from ID card should be extracted. - * - * + * The first name of Colombia ID owner. */ - this.returnSignatureImage = false; + this.firstName = nativeResult.firstName; /** - * Whether or not recognition result should be signed. - * - * + * Image of the full document */ - this.signResult = false; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The last name of Colombia ID owner. */ - this.signatureImageDpi = 250; + this.lastName = nativeResult.lastName; + + /** + * The sex of Colombia ID owner. + */ + this.sex = nativeResult.sex; - this.createResultFromNative = function (nativeResult) { return new CroatiaCombinedRecognizerResult(nativeResult); } - } -CroatiaCombinedRecognizer.prototype = new Recognizer('CroatiaCombinedRecognizer'); +ColombiaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CroatiaCombinedRecognizer = CroatiaCombinedRecognizer; +BlinkID.prototype.ColombiaIdBackRecognizerResult = ColombiaIdBackRecognizerResult; /** - * Result object for CroatiaIdBackRecognizer. + * Recognizer which can scan back side of Colombian national ID cards. */ -function CroatiaIdBackRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); +function ColombiaIdBackRecognizer() { + Recognizer.call(this, 'ColombiaIdBackRecognizer'); /** - * Determines if date of expiry of Croatian ID is permanent + * Defines whether glare detector is enabled. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + this.detectGlare = true; /** - * The date of issue of Croatian ID + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.fullDocumentImageDpi = 250; /** - * Determines if Croatian ID is issued for non resident + * The extension factors for full document image. */ - this.documentForNonResident = nativeResult.documentForNonResident; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * full document image if enabled with returnFullDocumentImage property. + * Allow scanning PDF417 barcodes which don't have quiet zone */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.nullQuietZoneAllowed = true; /** - * The issuer of Croatian ID + * Defines whether full document image will be available in */ - this.issuedBy = nativeResult.issuedBy; + this.returnFullDocumentImage = false; /** - * The data extracted from the machine readable zone + * Enable decoding of non-standard PDF417 barcodes, but without */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.scanUncertain = true; + + this.createResultFromNative = function (nativeResult) { return new ColombiaIdBackRecognizerResult(nativeResult); } + +} + +ColombiaIdBackRecognizer.prototype = new Recognizer('ColombiaIdBackRecognizer'); + +BlinkID.prototype.ColombiaIdBackRecognizer = ColombiaIdBackRecognizer; + +/** + * Result object for ColombiaIdFrontRecognizer. + */ +function ColombiaIdFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * The residence of Croatian ID owner + * The document number of Colombia ID. */ - this.residence = nativeResult.residence; + this.documentNumber = nativeResult.documentNumber; + + /** + * Face image from the document + */ + this.faceImage = nativeResult.faceImage; + + /** + * The first name of Colombia ID owner. + */ + this.firstName = nativeResult.firstName; + + /** + * Image of the full document + */ + this.fullDocumentImage = nativeResult.fullDocumentImage; + + /** + * The last name of Colombia ID owner. + */ + this.lastName = nativeResult.lastName; + + /** + * Signature image from the document + */ + this.signatureImage = nativeResult.signatureImage; } -CroatiaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +ColombiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CroatiaIdBackRecognizerResult = CroatiaIdBackRecognizerResult; +BlinkID.prototype.ColombiaIdFrontRecognizerResult = ColombiaIdFrontRecognizerResult; /** - * Croatian ID Back Recognizer. - * - * Croatian ID Back recognizer is used for scanning back side of Croatian ID. It always extracts - * MRZ zone and address of ID holder while extracting other elements is optional. + * Recognizer which can scan front side of Colombian national ID cards. */ -function CroatiaIdBackRecognizer() { - Recognizer.call(this, 'CroatiaIdBackRecognizer'); +function ColombiaIdFrontRecognizer() { + Recognizer.call(this, 'ColombiaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of issue of Croatian ID should be extracted - * - * + * Defines if first name of ID owner should be extracted */ - this.extractDateOfIssue = true; + this.extractFirstName = true; /** - * Defines if issuer of Croatian ID should be extracted - * - * + * Defines if last name of ID owner should be extracted */ - this.extractIssuedBy = true; + this.extractLastName = true; /** - * Defines if residence of Croatian ID owner should be extracted - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.extractResidence = true; + 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 full document image of ID card should be extracted. - * - * + * Defines whether face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new CroatiaIdBackRecognizerResult(nativeResult); } + /** + * Defines whether signature image will be available in result. + */ + this.returnSignatureImage = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. + */ + this.signatureImageDpi = 250; + + this.createResultFromNative = function (nativeResult) { return new ColombiaIdFrontRecognizerResult(nativeResult); } } -CroatiaIdBackRecognizer.prototype = new Recognizer('CroatiaIdBackRecognizer'); +ColombiaIdFrontRecognizer.prototype = new Recognizer('ColombiaIdFrontRecognizer'); -BlinkID.prototype.CroatiaIdBackRecognizer = CroatiaIdBackRecognizer; +BlinkID.prototype.ColombiaIdFrontRecognizer = ColombiaIdFrontRecognizer; /** - * Result object for CroatiaIdFrontRecognizer. + * Result object for CroatiaCombinedRecognizer. */ -function CroatiaIdFrontRecognizerResult(nativeResult) { +function CroatiaCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** @@ -3254,32 +3006,57 @@ function CroatiaIdFrontRecognizerResult(nativeResult) { this.citizenship = nativeResult.citizenship; /** - * The date of birth of Croatian ID owner + * The date of birth of the Croatian ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The document date of expiry of the Croatian ID + * The date of expiry of the Croatian ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Check if date of expiry is permanent on the Croatian ID. + * Determines if date of expiry of the Croatian ID is permanent. */ this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; /** - * true if the document is bilingual + * The date of issue of Croatian ID. + */ + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + + /** + * Defines digital signature of recognition results. + */ + this.digitalSignature = nativeResult.digitalSignature; + + /** + * Defines digital signature version. + */ + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + + /** + * Determines if Croatian ID is bilingual. */ this.documentBilingual = nativeResult.documentBilingual; + /** + * Defines {true} if data from scanned parts/sides of the document match, + */ + this.documentDataMatch = nativeResult.documentDataMatch; + + /** + * Determines if Croatian ID is issued for non resident. + */ + this.documentForNonResident = nativeResult.documentForNonResident; + /** * The document number of the Croatian ID. */ this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -3289,401 +3066,624 @@ function CroatiaIdFrontRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Back side image of the document */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + + /** + * Front side image of the document + */ + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + + /** + * The issuer of Croatian ID. + */ + this.issuedBy = nativeResult.issuedBy; /** * The last name of the Croatian ID owner. */ this.lastName = nativeResult.lastName; + /** + * Determines if all check digits inside MRZ are correct. + */ + this.mrzVerified = nativeResult.mrzVerified; + + /** + * The OIB of Croatian ID owner. + */ + this.oib = nativeResult.oib; + + /** + * The residence of Croatian ID owner. + */ + this.residence = nativeResult.residence; + + /** + * {true} if recognizer has finished scanning first side and is now scanning back side, + */ + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + /** * The sex of the Croatian ID owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; } -CroatiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +CroatiaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CroatiaIdFrontRecognizerResult = CroatiaIdFrontRecognizerResult; +BlinkID.prototype.CroatiaCombinedRecognizerResult = CroatiaCombinedRecognizerResult; /** - * Croatian ID Front Recognizer. - * - * Croatian ID Front recognizer is used for scanning front side of Croatian ID. It always extracts - * identity card number, first and last name of ID holder while extracting other elements is optional. + * Recognizer for combined reading of both front and back side of Croatian ID. */ -function CroatiaIdFrontRecognizer() { - Recognizer.call(this, 'CroatiaIdFrontRecognizer'); +function CroatiaCombinedRecognizer() { + Recognizer.call(this, 'CroatiaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if citizenship of Croatian ID owner should be extracted - * - * + * Defines if citizenship of Croatian ID owner should be extracted */ this.extractCitizenship = true; /** - * Defines if date of birth of Croatian ID owner should be extracted - * - * + * Defines if date of birth of Croatian ID owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Croatian ID - * - * + * Defines if date of expiry of Croatian ID document should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if first name of Croatian ID owner should be extracted - * - * + * Defines if date of issue of Croatian ID should be extracted. */ - this.extractFirstName = true; + this.extractDateOfIssue = true; /** - * Defines if last name of Croatian ID owner should be extracted - * - * + * Defines if first name of Croatian ID owner should be extracted */ - this.extractLastName = true; + this.extractFirstName = true; /** - * Defines if sex of Croatian ID owner should be extracted - * - * + * Defines if issuer of Croatian ID should be extracted. */ - this.extractSex = true; + this.extractIssuedBy = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if last name of Croatian ID owner should be extracted + */ + this.extractLastName = true; + + /** + * Defines if residence of Croatian ID owner should be extracted. + */ + this.extractResidence = true; + + /** + * Defines if sex of Croatian ID owner should be extracted + */ + this.extractSex = true; + + /** + * 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = false; /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines whether or not recognition result should be signed. + */ + this.signResult = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. */ this.signatureImageDpi = 250; - this.createResultFromNative = function (nativeResult) { return new CroatiaIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new CroatiaCombinedRecognizerResult(nativeResult); } } -CroatiaIdFrontRecognizer.prototype = new Recognizer('CroatiaIdFrontRecognizer'); +CroatiaCombinedRecognizer.prototype = new Recognizer('CroatiaCombinedRecognizer'); -BlinkID.prototype.CroatiaIdFrontRecognizer = CroatiaIdFrontRecognizer; +BlinkID.prototype.CroatiaCombinedRecognizer = CroatiaCombinedRecognizer; /** - * Result object for CyprusIdBackRecognizer. + * Result object for CroatiaIdBackRecognizer. */ -function CyprusIdBackRecognizerResult(nativeResult) { +function CroatiaIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * full document image if enabled with returnFullDocumentImage property. + * Determines if date of expiry of Croatian ID is permanent + */ + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + + /** + * The date of issue of Croatian ID + */ + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + + /** + * Determines if Croatian ID is issued for non resident + */ + this.documentForNonResident = nativeResult.documentForNonResident; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; + /** + * The issuer of Croatian ID + */ + this.issuedBy = nativeResult.issuedBy; + /** * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + /** + * The residence of Croatian ID owner + */ + this.residence = nativeResult.residence; + } -CyprusIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +CroatiaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CyprusIdBackRecognizerResult = CyprusIdBackRecognizerResult; +BlinkID.prototype.CroatiaIdBackRecognizerResult = CroatiaIdBackRecognizerResult; /** - * Recognizer which can scan back side of Cyprus ID cards. + * Recognizer which can scan back side of Croatian national ID cards. */ -function CyprusIdBackRecognizer() { - Recognizer.call(this, 'CyprusIdBackRecognizer'); +function CroatiaIdBackRecognizer() { + Recognizer.call(this, 'CroatiaIdBackRecognizer'); /** - * 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 - * - * + * Defines if date of issue of Croatian ID should be extracted + */ + this.extractDateOfIssue = true; + + /** + * Defines if issuer of Croatian ID should be extracted + */ + this.extractIssuedBy = true; + + /** + * Defines if residence of Croatian ID owner should be extracted + */ + this.extractResidence = true; + + /** + * 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; - this.createResultFromNative = function (nativeResult) { return new CyprusIdBackRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new CroatiaIdBackRecognizerResult(nativeResult); } } -CyprusIdBackRecognizer.prototype = new Recognizer('CyprusIdBackRecognizer'); +CroatiaIdBackRecognizer.prototype = new Recognizer('CroatiaIdBackRecognizer'); -BlinkID.prototype.CyprusIdBackRecognizer = CyprusIdBackRecognizer; +BlinkID.prototype.CroatiaIdBackRecognizer = CroatiaIdBackRecognizer; /** - * Result object for CyprusIdFrontRecognizer. + * Result object for CroatiaIdFrontRecognizer. */ -function CyprusIdFrontRecognizerResult(nativeResult) { +function CroatiaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * The citizenship of the Croatian ID owner + */ + this.citizenship = nativeResult.citizenship; + + /** + * The date of birth of the Croatian ID owner + */ + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + + /** + * The date of expiry of the Croatian ID document + */ + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + + /** + * The date of expiry of the Croatian ID document is permanent + */ + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + + /** + * The Croatian ID document is bilingual + */ + this.documentBilingual = nativeResult.documentBilingual; + + /** + * The document number of the Croatian ID + */ + this.documentNumber = nativeResult.documentNumber; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * full document image if enabled with returnFullDocumentImage property. + * The last name of the Croatian ID owner + */ + this.firstName = nativeResult.firstName; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The ID number of Cyprus ID card. + * The first name of the Croatian ID owner */ - this.idNumber = nativeResult.idNumber; + this.lastName = nativeResult.lastName; + + /** + * The sex of the Croatian ID owner + */ + this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; } -CyprusIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +CroatiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CyprusIdFrontRecognizerResult = CyprusIdFrontRecognizerResult; +BlinkID.prototype.CroatiaIdFrontRecognizerResult = CroatiaIdFrontRecognizerResult; /** - * Recognizer which can scan front side of Cyprus national ID cards. + * Recognizer which can scan front side of Croatia national ID cards. */ -function CyprusIdFrontRecognizer() { - Recognizer.call(this, 'CyprusIdFrontRecognizer'); +function CroatiaIdFrontRecognizer() { + Recognizer.call(this, 'CroatiaIdFrontRecognizer'); /** - * 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 - * - * + * Defines if citizenship of Croatian ID owner should be extracted + */ + this.extractCitizenship = true; + + /** + * Defines if date of birth of Croatian ID owner should be extracted + */ + this.extractDateOfBirth = true; + + /** + * Defines if date of expiry of Croatian ID document should be extracted + */ + this.extractDateOfExpiry = true; + + /** + * Defines if first name of Croatian ID owner should be extracted + */ + this.extractFirstName = true; + + /** + * Defines if last name of Croatian ID owner should be extracted + */ + this.extractLastName = true; + + /** + * Defines if sex of Croatian ID owner should be extracted + */ + this.extractSex = true; + + /** + * 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; - this.createResultFromNative = function (nativeResult) { return new CyprusIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new CroatiaIdFrontRecognizerResult(nativeResult); } } -CyprusIdFrontRecognizer.prototype = new Recognizer('CyprusIdFrontRecognizer'); +CroatiaIdFrontRecognizer.prototype = new Recognizer('CroatiaIdFrontRecognizer'); -BlinkID.prototype.CyprusIdFrontRecognizer = CyprusIdFrontRecognizer; +BlinkID.prototype.CroatiaIdFrontRecognizer = CroatiaIdFrontRecognizer; /** - * Result object for CyprusOldIdBackRecognizer. + * Result object for CyprusIdBackRecognizer. */ -function CyprusOldIdBackRecognizerResult(nativeResult) { +function CyprusIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of the old Cyprus ID card owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The expiry date of old Cyprus ID card. - */ - this.expiresOn = nativeResult.expiresOn != null ? new Date(nativeResult.expiresOn) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The sex of the old Cyprus ID card owner. + * The data extracted from the machine readable zone. */ - this.sex = nativeResult.sex; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; } -CyprusOldIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +CyprusIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.CyprusOldIdBackRecognizerResult = CyprusOldIdBackRecognizerResult; +BlinkID.prototype.CyprusIdBackRecognizerResult = CyprusIdBackRecognizerResult; /** - * Recognizer which can scan back side of old Cyprus national ID cards. + * Recognizer which can scan back side of Cyprus ID cards. */ -function CyprusOldIdBackRecognizer() { - Recognizer.call(this, 'CyprusOldIdBackRecognizer'); +function CyprusIdBackRecognizer() { + Recognizer.call(this, 'CyprusIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if the expiry date of old Cryprus ID card should be extracted. - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.extractExpiresOn = true; + this.fullDocumentImageDpi = 250; /** - * Defines if the sex of old Cyprus ID card owner should be extracted. - * - * + * The extension factors for full document image. */ - this.extractSex = true; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines whether full document image will be available in + */ + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new CyprusIdBackRecognizerResult(nativeResult); } + +} + +CyprusIdBackRecognizer.prototype = new Recognizer('CyprusIdBackRecognizer'); + +BlinkID.prototype.CyprusIdBackRecognizer = CyprusIdBackRecognizer; + +/** + * Result object for CyprusIdFrontRecognizer. + */ +function CyprusIdFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); + + /** + * Face image from the document + */ + this.faceImage = nativeResult.faceImage; + + /** + * Image of the full document + */ + this.fullDocumentImage = nativeResult.fullDocumentImage; + + /** + * The ID number of Cyprus ID card. + */ + this.idNumber = nativeResult.idNumber; + + /** + * Signature image from the document + */ + this.signatureImage = nativeResult.signatureImage; + +} + +CyprusIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.CyprusIdFrontRecognizerResult = CyprusIdFrontRecognizerResult; + +/** + * Recognizer which can scan front side of Cyprus national ID cards. + */ +function CyprusIdFrontRecognizer() { + Recognizer.call(this, 'CyprusIdFrontRecognizer'); + + /** + * Defines whether glare detector is enabled. + */ + this.detectGlare = true; + + /** + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * 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 face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in + */ + this.returnFullDocumentImage = false; + + /** + * Defines whether signature image will be available in result. + */ + this.returnSignatureImage = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. + */ + this.signatureImageDpi = 250; + + this.createResultFromNative = function (nativeResult) { return new CyprusIdFrontRecognizerResult(nativeResult); } + +} + +CyprusIdFrontRecognizer.prototype = new Recognizer('CyprusIdFrontRecognizer'); + +BlinkID.prototype.CyprusIdFrontRecognizer = CyprusIdFrontRecognizer; + +/** + * Result object for CyprusOldIdBackRecognizer. + */ +function CyprusOldIdBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); + + /** + * The date of birth of the old Cyprus ID card owner. + */ + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + + /** + * The expiry date of old Cyprus ID card. + */ + this.expiresOn = nativeResult.expiresOn != null ? new Date(nativeResult.expiresOn) : null; + + /** + * Image of the full document + */ + this.fullDocumentImage = nativeResult.fullDocumentImage; + + /** + * The sex of the old Cyprus ID card owner. + */ + this.sex = nativeResult.sex; + +} + +CyprusOldIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.CyprusOldIdBackRecognizerResult = CyprusOldIdBackRecognizerResult; + +/** + * Recognizer which can scan back side of old Cyprus national ID cards. + */ +function CyprusOldIdBackRecognizer() { + Recognizer.call(this, 'CyprusOldIdBackRecognizer'); + + /** + * Defines whether glare detector is enabled. + */ + this.detectGlare = true; + + /** + * Defines if the expiry date of old Cryprus ID card should be extracted. + */ + this.extractExpiresOn = true; + + /** + * Defines if the sex of old Cyprus ID card owner should be extracted. + */ + this.extractSex = true; + + /** + * The DPI (Dots Per Inch) for full document image that should be returned. + */ + this.fullDocumentImageDpi = 250; + + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -3707,12 +3707,12 @@ function CyprusOldIdFrontRecognizerResult(nativeResult) { this.documentNumber = nativeResult.documentNumber; /** - * 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; @@ -3744,68 +3744,47 @@ function CyprusOldIdFrontRecognizer() { Recognizer.call(this, 'CyprusOldIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if document number of old Cyprus ID card should be extracted. - * - * + * Defines if document number of old Cyprus ID card should be extracted. */ this.extractDocumentNumber = true; /** - * Defines if name of old Cyprus ID card owner should be extracted. - * - * + * Defines if name of old Cyprus ID card owner should be extracted. */ this.extractName = true; /** - * Defines if surname of old Cyprus ID card owner should be extracted. - * - * + * Defines if surname of old Cyprus ID card owner should be extracted. */ this.extractSurname = 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; @@ -3824,45 +3803,42 @@ function CzechiaCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The full address of the Czech ID owner. + * The address of the Czech ID owner. */ this.address = nativeResult.address; /** - * The date of birth of Czech ID owner + * The date of birth of Czech ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Czech ID owner + * The document date of expiry of the Czech ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issue of Czech ID owner + * The document date of issue of the Czech ID. */ 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -3872,17 +3848,17 @@ function CzechiaCombinedRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * 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; /** - * The document number of the Czech ID. + * The identity card number of Czech ID. */ this.identityCardNumber = nativeResult.identityCardNumber; @@ -3897,18 +3873,17 @@ function CzechiaCombinedRecognizerResult(nativeResult) { this.lastName = nativeResult.lastName; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * True if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * The nationality of the Czech ID owner. + * Nationality of the Czech ID owner. */ this.nationality = nativeResult.nationality; /** - * The personal identification number of the Czech ID owner. + * Personal identification number of the Czech ID holder. */ this.personalIdentificationNumber = nativeResult.personalIdentificationNumber; @@ -3918,18 +3893,17 @@ function CzechiaCombinedRecognizerResult(nativeResult) { this.placeOfBirth = nativeResult.placeOfBirth; /** - * 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; /** - * The sex of the Czech ID owner. + * Sex of the Czech ID owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -3940,45 +3914,34 @@ CzechiaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.CzechiaCombinedRecognizerResult = CzechiaCombinedRecognizerResult; /** - * Czech ID Combined Recognizer. + * Recognizer for combined reading of both front and back side of Czech ID. * - * Czech ID Combined recognizer is used for scanning both front and back side of Czech ID. */ function CzechiaCombinedRecognizer() { Recognizer.call(this, 'CzechiaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * 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; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -4002,7 +3965,7 @@ function CzechiaIdBackRecognizerResult(nativeResult) { this.authority = nativeResult.authority; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -4034,53 +3997,37 @@ function CzechiaIdBackRecognizer() { Recognizer.call(this, 'CzechiaIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if Czech ID's issuing authority should be extracted. - * - * + * Defines if Czech ID's issuing authority should be extracted. */ this.extractAuthority = true; /** - * Defines if Czech ID owner's permanent address should be extracted. - * - * + * Defines if Czech ID owner's permanent address should be extracted. */ this.extractPermanentStay = true; /** - * Defines if Czech ID owner's personal number should be extracted. - * - * + * Defines if Czech ID owner's personal number should be extracted. */ this.extractPersonalNumber = 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; @@ -4119,12 +4066,12 @@ function CzechiaIdFrontRecognizerResult(nativeResult) { this.documentNumber = nativeResult.documentNumber; /** - * 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; @@ -4144,7 +4091,7 @@ function CzechiaIdFrontRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -4166,111 +4113,77 @@ function CzechiaIdFrontRecognizer() { Recognizer.call(this, 'CzechiaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if Czech ID owner's date of birth should be extracted - * - * + * Defines if Czech ID owner's date of birth should be extracted */ this.extractDateOfBirth = true; /** - * Defines if Czech ID's date of expiry should be extracted - * - * + * Defines if Czech ID's date of expiry should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if Czech ID's date of issue should be extracted - * - * + * Defines if Czech ID's date of issue should be extracted */ this.extractDateOfIssue = true; /** - * Defines if Czech ID owner's given names should be extracted - * - * + * Defines if Czech ID owner's given names should be extracted */ this.extractGivenNames = true; /** - * Defines if Czech ID owner's place of birth should be extracted - * - * + * Defines if Czech ID owner's place of birth should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if Czech ID owner's sex should be extracted - * - * + * Defines if Czech ID owner's sex should be extracted */ this.extractSex = true; /** - * Defines if Czech ID owner's surname should be extracted - * - * + * Defines if Czech ID owner's surname should be extracted */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -4289,22 +4202,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; @@ -4315,65 +4228,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; @@ -4392,22 +4283,22 @@ function EgyptIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The document number of the Egypt ID. + * The Egypt ID document number. */ this.documentNumber = nativeResult.documentNumber; /** - * 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; /** - * The National Number of the Egypt ID owner. + * The Egypt ID card owner national number. */ this.nationalNumber = nativeResult.nationalNumber; @@ -4418,38 +4309,29 @@ EgyptIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.EgyptIdFrontRecognizerResult = EgyptIdFrontRecognizerResult; /** - * Class for configuring Egypt ID Front Recognizer. + * Recognizer for reading Egypt ID Front document. * - * Egypt ID Front recognizer is used for scanning front side of Egypt ID. */ function EgyptIdFrontRecognizer() { Recognizer.call(this, 'EgyptIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's national number should be extracted from Egypt ID - * - * + * True if national number of Egypt ID Front owner is being extracted */ this.extractNationalNumber = true; /** - * 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; @@ -4462,5511 +4344,4004 @@ EgyptIdFrontRecognizer.prototype = new Recognizer('EgyptIdFrontRecognizer'); BlinkID.prototype.EgyptIdFrontRecognizer = EgyptIdFrontRecognizer; /** - * Result object for ElitePaymentCardBackRecognizer. + * Result object for EudlRecognizer. */ -function ElitePaymentCardBackRecognizerResult(nativeResult) { +function EudlRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The card Number of the back side of the Elite Payment Card owner. + * The address of the Driver's Licence owner. */ - this.cardNumber = nativeResult.cardNumber; + this.address = nativeResult.address; /** - * The cvv of the back side of the Elite Payment Card owner. + * Birth date and birth place of Driver's Licence owner */ - this.cvv = nativeResult.cvv; + this.birthData = nativeResult.birthData; /** - * full document image if enabled with returnFullDocumentImage property. + * The country where the driver's license has been issued. + */ + this.country = nativeResult.country; + + /** + * The driver number. + */ + this.driverNumber = nativeResult.driverNumber; + + /** + * The expiry date of the Driver's Licence + */ + this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; + + /** + * Face image from the document + */ + this.faceImage = nativeResult.faceImage; + + /** + * The first name of the Driver's Licence owner. + */ + this.firstName = nativeResult.firstName; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The inventory Number of the back side of the Elite Payment Card owner. + * The issue date of the Driver's Licence */ - this.inventoryNumber = nativeResult.inventoryNumber; + this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; /** - * The valid Thru of the back side of the Elite Payment Card owner. + * Document issuing authority. */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; + this.issuingAuthority = nativeResult.issuingAuthority; + + /** + * The last name of the Driver's Licence owner. + */ + this.lastName = nativeResult.lastName; + + /** + * The personal number of the Driver's Licence owner. + */ + this.personalNumber = nativeResult.personalNumber; } -ElitePaymentCardBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +EudlRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ElitePaymentCardBackRecognizerResult = ElitePaymentCardBackRecognizerResult; +BlinkID.prototype.EudlRecognizerResult = EudlRecognizerResult; /** - * Recognizer used for scanning the back side of elite payment cards. + * Recognizer for scanning driver's licence of several european countries */ -function ElitePaymentCardBackRecognizer() { - Recognizer.call(this, 'ElitePaymentCardBackRecognizer'); +function EudlRecognizer() { + Recognizer.call(this, 'EudlRecognizer'); /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * + * Currently used country. */ - this.anonymizeCardNumber = false; + this.country = EudlCountry.Automatic; /** - * Should anonymize the CVV area (redact image pixels) on the document image result - * - * + * Defines if address should be extracted from EU driver's license */ - this.anonymizeCvv = false; + this.extractAddress = true; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines if expiry date should be extracted from EU driver's license */ - this.detectGlare = true; + this.extractDateOfExpiry = true; /** - * Should extract the card's inventory number - * - * + * Defines if issue date should be extracted from EU driver's license */ - this.extractInventoryNumber = true; + this.extractDateOfIssue = true; /** - * Should extract the payment card's month of expiry - * - * + * Defines if issuing authority should be extracted from EU driver's license */ - this.extractValidThru = true; + this.extractIssuingAuthority = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if personal number should be extracted from EU driver's license + */ + this.extractPersonalNumber = true; + + /** + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * 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 face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new ElitePaymentCardBackRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new EudlRecognizerResult(nativeResult); } } -ElitePaymentCardBackRecognizer.prototype = new Recognizer('ElitePaymentCardBackRecognizer'); +EudlRecognizer.prototype = new Recognizer('EudlRecognizer'); -BlinkID.prototype.ElitePaymentCardBackRecognizer = ElitePaymentCardBackRecognizer; +BlinkID.prototype.EudlRecognizer = EudlRecognizer; /** - * Result object for ElitePaymentCardCombinedRecognizer. + * Result object for GermanyCombinedRecognizer. */ -function ElitePaymentCardCombinedRecognizerResult(nativeResult) { +function GermanyCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The payment card number. + * The address of the German ID owner. */ - this.cardNumber = nativeResult.cardNumber; + this.address = nativeResult.address; /** - * Payment card's security code/value. + * The CAN number of German ID. */ - this.cvv = nativeResult.cvv; + this.canNumber = nativeResult.canNumber; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * The date of birth of German ID owner. */ - this.digitalSignature = nativeResult.digitalSignature; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Version of the digital signature. Available only if enabled with signResult property. + * The document date of expiry of the German ID. */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * The document date of issue of the German ID. */ - this.documentDataMatch = nativeResult.documentDataMatch; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Defines digital signature of recognition results. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + this.digitalSignature = nativeResult.digitalSignature; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * Defines digital signature version. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Payment card's inventory number. + * Defines {true} if data from scanned parts/sides of the document match, */ - this.inventoryNumber = nativeResult.inventoryNumber; + this.documentDataMatch = nativeResult.documentDataMatch; /** - * Information about the payment card owner (name, company, etc.). + * The issuing authority of German ID. */ - this.owner = nativeResult.owner; + this.eyeColor = nativeResult.eyeColor; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * Face image from the document */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + this.faceImage = nativeResult.faceImage; /** - * The payment card's last month of validity. + * The first name of the German ID owner. */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; + this.firstName = nativeResult.firstName; -} - -ElitePaymentCardCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.ElitePaymentCardCombinedRecognizerResult = ElitePaymentCardCombinedRecognizerResult; - -/** - * Recognizer used for scanning the front and back side of credit/debit cards. - */ -function ElitePaymentCardCombinedRecognizer() { - Recognizer.call(this, 'ElitePaymentCardCombinedRecognizer'); + /** + * Back side image of the document + */ + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * + * Front side image of the document */ - this.anonymizeCardNumber = false; + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** - * Should anonymize the CVV area (redact image pixels) on the document image result - * - * + * The issuing authority of German ID. */ - this.anonymizeCvv = false; + this.height = nativeResult.height; /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * + * The identity card number of German ID. */ - this.anonymizeOwner = false; + this.identityCardNumber = nativeResult.identityCardNumber; /** - * Defines if glare detection should be turned on/off. - * - * + * The issuing authority of German ID. */ - this.detectGlare = true; + this.issuingAuthority = nativeResult.issuingAuthority; /** - * Should extract the card's inventory number - * - * + * The last name of the German ID owner. */ - this.extractInventoryNumber = true; + this.lastName = nativeResult.lastName; /** - * Should extract the card owner information - * - * + * True if all check digits inside MRZ are correct, false otherwise. */ - this.extractOwner = true; + this.mrzVerified = nativeResult.mrzVerified; /** - * Should extract the payment card's month of expiry - * - * + * Nationality of the German ID owner. */ - this.extractValidThru = true; + this.nationality = nativeResult.nationality; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The issuing authority of German ID. */ - this.fullDocumentImageDpi = 250; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * {true} if recognizer has finished scanning first side and is now scanning back side, */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Sex of the German ID owner. */ - this.returnFullDocumentImage = false; + this.sex = nativeResult.sex; /** - * Whether or not recognition result should be signed. - * - * + * Signature image from the document */ - this.signResult = false; + this.signatureImage = nativeResult.signatureImage; - this.createResultFromNative = function (nativeResult) { return new ElitePaymentCardCombinedRecognizerResult(nativeResult); } - } -ElitePaymentCardCombinedRecognizer.prototype = new Recognizer('ElitePaymentCardCombinedRecognizer'); +GermanyCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ElitePaymentCardCombinedRecognizer = ElitePaymentCardCombinedRecognizer; +BlinkID.prototype.GermanyCombinedRecognizerResult = GermanyCombinedRecognizerResult; /** - * Result object for ElitePaymentCardFrontRecognizer. + * Recognizer for combined reading of both front and back side of German ID. + * */ -function ElitePaymentCardFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); +function GermanyCombinedRecognizer() { + Recognizer.call(this, 'GermanyCombinedRecognizer'); /** - * full document image if enabled with returnFullDocumentImage property. + * Defines whether glare detector is enabled. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.detectGlare = true; /** - * The owner of the front side of the Elite Payment Card owner. + * True if address is being extracted from ID */ - this.owner = nativeResult.owner; - -} - -ElitePaymentCardFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.ElitePaymentCardFrontRecognizerResult = ElitePaymentCardFrontRecognizerResult; - -/** - * Recognizer used for scanning the front side of elite credit/debit cards. - */ -function ElitePaymentCardFrontRecognizer() { - Recognizer.call(this, 'ElitePaymentCardFrontRecognizer'); + this.extractAddress = true; /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * + * Defines the extension factors for full document image. */ - this.anonymizeOwner = false; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether face image will be available in result. */ - this.detectGlare = true; + this.returnFaceImage = false; /** - * Should extract the card owner information - * - * + * Defines whether full document image will be available in */ - this.extractOwner = true; + this.returnFullDocumentImage = false; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines whether signature image will be available in result. */ - this.fullDocumentImageDpi = 250; + this.returnSignatureImage = false; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines whether or not recognition result should be signed. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.signResult = false; + + this.createResultFromNative = function (nativeResult) { return new GermanyCombinedRecognizerResult(nativeResult); } + +} + +GermanyCombinedRecognizer.prototype = new Recognizer('GermanyCombinedRecognizer'); + +BlinkID.prototype.GermanyCombinedRecognizer = GermanyCombinedRecognizer; + +/** + * Result object for GermanyDlBackRecognizer. + */ +function GermanyDlBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Sets whether full document image of ID card should be extracted. - * - * + * The date of issue for B category of German DL card. */ - this.returnFullDocumentImage = false; + this.dateOfIssueB10 = nativeResult.dateOfIssueB10 != null ? new Date(nativeResult.dateOfIssueB10) : null; + + /** + * The date of issue for B category of German DL card is not specified. + */ + this.dateOfIssueB10NotSpecified = nativeResult.dateOfIssueB10NotSpecified; + + /** + * Image of the full document + */ + this.fullDocumentImage = nativeResult.fullDocumentImage; - this.createResultFromNative = function (nativeResult) { return new ElitePaymentCardFrontRecognizerResult(nativeResult); } - } -ElitePaymentCardFrontRecognizer.prototype = new Recognizer('ElitePaymentCardFrontRecognizer'); +GermanyDlBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.ElitePaymentCardFrontRecognizer = ElitePaymentCardFrontRecognizer; +BlinkID.prototype.GermanyDlBackRecognizerResult = GermanyDlBackRecognizerResult; /** - * Result object for EudlRecognizer. + * Recognizer which can scan back side of German DL cards. */ -function EudlRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); +function GermanyDlBackRecognizer() { + Recognizer.call(this, 'GermanyDlBackRecognizer'); /** - * The address of the EU Driver License owner. + * Defines whether glare detector is enabled. */ - this.address = nativeResult.address; + this.detectGlare = true; /** - * The birth Data of the EU Driver License owner. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.birthData = nativeResult.birthData; + this.fullDocumentImageDpi = 250; /** - * The country of the EU Driver License owner. + * The extension factors for full document image. */ - this.country = nativeResult.country; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * The driver Number of the EU Driver License owner. + * Defines whether full document image will be available in */ - this.driverNumber = nativeResult.driverNumber; + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new GermanyDlBackRecognizerResult(nativeResult); } + +} + +GermanyDlBackRecognizer.prototype = new Recognizer('GermanyDlBackRecognizer'); + +BlinkID.prototype.GermanyDlBackRecognizer = GermanyDlBackRecognizer; + +/** + * Result object for GermanyDlFrontRecognizer. + */ +function GermanyDlFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * The expiry Date of the EU Driver License owner. + * The date of birth of Germany DL owner. */ - this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * face image from the document if enabled with returnFaceImage property. + * The date of expiry of Germany DL. + */ + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + + /** + * The date of issue of Germany DL. + */ + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The first Name of the EU Driver License owner. + * The first name of the Germany DL owner. */ this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The issue Date of the EU Driver License owner. + * The issuing authority of the Germany DL. */ - this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; + this.issuingAuthority = nativeResult.issuingAuthority; /** - * The issuing Authority of the EU Driver License owner. + * The last name of the Germany DL owner. */ - this.issuingAuthority = nativeResult.issuingAuthority; + this.lastName = nativeResult.lastName; /** - * The last Name of the EU Driver License owner. + * The licence categories of the Germany DL. */ - this.lastName = nativeResult.lastName; + this.licenceCategories = nativeResult.licenceCategories; /** - * The personal Number of the EU Driver License owner. + * The licence number of the Germany DL. */ - this.personalNumber = nativeResult.personalNumber; + this.licenceNumber = nativeResult.licenceNumber; + + /** + * The place of birth of Germany DL owner. + */ + this.placeOfBirth = nativeResult.placeOfBirth; + + /** + * Signature image from the document + */ + this.signatureImage = nativeResult.signatureImage; } -EudlRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +GermanyDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.EudlRecognizerResult = EudlRecognizerResult; +BlinkID.prototype.GermanyDlFrontRecognizerResult = GermanyDlFrontRecognizerResult; /** - * Class for configuring EU Driver License Recognizer. - * - * EU Driver License recognizer is used for scanning EU Driver License. + * Recognizer which can scan front side of Germany national DL cards */ -function EudlRecognizer() { - Recognizer.call(this, 'EudlRecognizer'); +function GermanyDlFrontRecognizer() { + Recognizer.call(this, 'GermanyDlFrontRecognizer'); /** - * Country of scanning Eudl. The default value of EudlCountryAny will scan all supported driver's licenses. - * - * + * Defines whether glare detector is enabled. */ - this.country = EudlCountry.Automatic; + this.detectGlare = true; /** - * Defines if owner's address should be extracted from EU Driver License - * - * + * Defines if date of birth of Germany DL owner should be extracted. */ - this.extractAddress = true; + this.extractDateOfBirth = true; /** - * Defines if owner's date of expiry should be extracted from EU Driver License - * - * + * Defines if date of expiry of Germany DL should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if owner's date of issue should be extracted from EU Driver License - * - * + * Defines if date of issue of Germany DL should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if owner's issuing authority should be extracted from EU Driver License - * - * + * Defines if first name of Germany DL owner should be extracted. + */ + this.extractFirstName = true; + + /** + * Defines if issuing authority of Germany DL should be extracted. */ this.extractIssuingAuthority = true; /** - * Defines if owner's personal number should be extracted from EU Driver License - * - * + * Defines if last name of Germany DL owner should be extracted. */ - this.extractPersonalNumber = true; + this.extractLastName = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if licence categories of Germany DL should be extracted. + */ + this.extractLicenceCategories = true; + + /** + * Defines if place of birth of Germany DL owner should be extracted. + */ + this.extractPlaceOfBirth = true; + + /** + * 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; - this.createResultFromNative = function (nativeResult) { return new EudlRecognizerResult(nativeResult); } + /** + * Defines whether signature image will be available in result. + */ + this.returnSignatureImage = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. + */ + this.signatureImageDpi = 250; + + this.createResultFromNative = function (nativeResult) { return new GermanyDlFrontRecognizerResult(nativeResult); } } -EudlRecognizer.prototype = new Recognizer('EudlRecognizer'); +GermanyDlFrontRecognizer.prototype = new Recognizer('GermanyDlFrontRecognizer'); -BlinkID.prototype.EudlRecognizer = EudlRecognizer; +BlinkID.prototype.GermanyDlFrontRecognizer = GermanyDlFrontRecognizer; /** - * Result object for GermanyCombinedRecognizer. + * Result object for GermanyIdBackRecognizer. */ -function GermanyCombinedRecognizerResult(nativeResult) { +function GermanyIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the German ID owner. - */ - this.address = nativeResult.address; - - /** - * The CAN number of German ID. + * The city of German ID owner. */ - this.canNumber = nativeResult.canNumber; + this.addressCity = nativeResult.addressCity; /** - * The date of birth of German ID owner + * The house number of German ID owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.addressHouseNumber = nativeResult.addressHouseNumber; /** - * The date of expiry of German ID owner + * The street of German ID owner. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.addressStreet = nativeResult.addressStreet; /** - * The date of issue of German ID owner + * The zip code of German ID owner. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.addressZipCode = nativeResult.addressZipCode; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * The issuing authority of German ID. */ - this.digitalSignature = nativeResult.digitalSignature; + this.authority = nativeResult.authority; /** - * Version of the digital signature. Available only if enabled with signResult property. + * The colour of eyes of German ID owner. */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + this.colourOfEyes = nativeResult.colourOfEyes; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * The date of issue of German ID. */ - this.documentDataMatch = nativeResult.documentDataMatch; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The eye color of German ID owner. + * The full address of German ID owner. */ - this.eyeColor = nativeResult.eyeColor; + this.fullAddress = nativeResult.fullAddress; /** - * face image from the document if enabled with returnFaceImage property. + * Image of the full document */ - this.faceImage = nativeResult.faceImage; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The first name of the German ID owner. + * The height of German ID owner. */ - this.firstName = nativeResult.firstName; + this.height = nativeResult.height; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * The data extracted from the machine readable zone. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; +} + +GermanyIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.GermanyIdBackRecognizerResult = GermanyIdBackRecognizerResult; + +/** + * Recognizer which can scan back side of German ID. + */ +function GermanyIdBackRecognizer() { + Recognizer.call(this, 'GermanyIdBackRecognizer'); /** - * The height of German ID owner. + * Defines whether glare detector is enabled. */ - this.height = nativeResult.height; + this.detectGlare = true; /** - * The identity card number of German ID. + * Defines if address of German ID owner should be extracted. */ - this.identityCardNumber = nativeResult.identityCardNumber; + this.extractAddress = true; /** - * The issuing authority of German ID. + * Defines if issuing authority of German ID should be extracted. */ - this.issuingAuthority = nativeResult.issuingAuthority; + this.extractAuthority = true; /** - * The last name of the German ID owner. + * Defines if colour of eyes of German ID owner should be extracted. */ - this.lastName = nativeResult.lastName; + this.extractColourOfEyes = true; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * Defines if date of issue of German ID should be extracted. */ - this.mrzVerified = nativeResult.mrzVerified; + this.extractDateOfIssue = true; /** - * The nationality of the German ID owner. + * Defines if height of German ID owner should be extracted. */ - this.nationality = nativeResult.nationality; + this.extractHeight = true; /** - * The place of birth of the German ID owner. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.fullDocumentImageDpi = 250; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * The extension factors for full document image. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * The sex of the German ID owner. + * Defines whether full document image will be available in */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; + this.returnFullDocumentImage = false; + this.createResultFromNative = function (nativeResult) { return new GermanyIdBackRecognizerResult(nativeResult); } + } -GermanyCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +GermanyIdBackRecognizer.prototype = new Recognizer('GermanyIdBackRecognizer'); -BlinkID.prototype.GermanyCombinedRecognizerResult = GermanyCombinedRecognizerResult; +BlinkID.prototype.GermanyIdBackRecognizer = GermanyIdBackRecognizer; /** - * German ID Combined Recognizer. - * - * German ID Combined recognizer is used for scanning both front and back side of German ID. + * Result object for GermanyIdFrontRecognizer. */ -function GermanyCombinedRecognizer() { - Recognizer.call(this, 'GermanyCombinedRecognizer'); +function GermanyIdFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Defines if glare detection should be turned on/off. - * - * + * The CAN number of Germany ID. */ - this.detectGlare = true; + this.canNumber = nativeResult.canNumber; /** - * Defines if owner's address should be extracted from German ID - * - * + * The date of birth of Germany ID owner. */ - this.extractAddress = true; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The date of expiry of Germany ID. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Sets whether face image from ID card should be extracted - * - * + * The document number of Germany ID. */ - this.returnFaceImage = false; + this.documentNumber = nativeResult.documentNumber; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Face image from the document */ - this.returnFullDocumentImage = false; + this.faceImage = nativeResult.faceImage; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Image of the full document */ - this.returnSignatureImage = false; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Whether or not recognition result should be signed. - * - * + * The given names of Germany ID owner. */ - this.signResult = false; + this.givenNames = nativeResult.givenNames; - this.createResultFromNative = function (nativeResult) { return new GermanyCombinedRecognizerResult(nativeResult); } - -} - -GermanyCombinedRecognizer.prototype = new Recognizer('GermanyCombinedRecognizer'); - -BlinkID.prototype.GermanyCombinedRecognizer = GermanyCombinedRecognizer; - -/** - * Result object for GermanyDlBackRecognizer. - */ -function GermanyDlBackRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); + /** + * The nationality of Germany ID owner. + */ + this.nationality = nativeResult.nationality; /** - * The date of issue for B category of German DL card. + * The place of birth of Germany ID owner. */ - this.dateOfIssueB10 = nativeResult.dateOfIssueB10 != null ? new Date(nativeResult.dateOfIssueB10) : null; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * The date of issue for B category of German DL card is not specified. + * Signature image from the document */ - this.dateOfIssueB10NotSpecified = nativeResult.dateOfIssueB10NotSpecified; + this.signatureImage = nativeResult.signatureImage; /** - * full document image if enabled with returnFullDocumentImage property. + * The surname of Germany ID owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.surname = nativeResult.surname; } -GermanyDlBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +GermanyIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.GermanyDlBackRecognizerResult = GermanyDlBackRecognizerResult; +BlinkID.prototype.GermanyIdFrontRecognizerResult = GermanyIdFrontRecognizerResult; /** - * Recognizer which can scan back side of German DL cards. + * Recognizer which can scan front side of Germany national ID cards. */ -function GermanyDlBackRecognizer() { - Recognizer.call(this, 'GermanyDlBackRecognizer'); +function GermanyIdFrontRecognizer() { + Recognizer.call(this, 'GermanyIdFrontRecognizer'); /** - * 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 - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines if CAN number of Germany ID should be extracted. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractCanNumber = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines if date of expiry of Germany ID should be extracted. */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new GermanyDlBackRecognizerResult(nativeResult); } - -} - -GermanyDlBackRecognizer.prototype = new Recognizer('GermanyDlBackRecognizer'); - -BlinkID.prototype.GermanyDlBackRecognizer = GermanyDlBackRecognizer; - -/** - * Result object for GermanyDlFrontRecognizer. - */ -function GermanyDlFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); + this.extractDateOfExpiry = true; /** - * The date of birth of Germany DL owner. + * Defines if document number of Germany ID should be extracted. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.extractDocumentNumber = true; /** - * The date of expiry of Germany DL. + * Defines if given names of Germany ID owner should be extracted. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.extractGivenNames = true; /** - * The date of issue of Germany DL. + * Defines if nationality of Germany ID owner should be extracted. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.extractNationality = true; /** - * face image from the document if enabled with returnFaceImage property. + * Defines if place of birth of Germany ID owner should be extracted. */ - this.faceImage = nativeResult.faceImage; + this.extractPlaceOfBirth = true; /** - * The first name of the Germany DL owner. + * Defines if surname of Germany ID owner should be extracted. */ - this.firstName = nativeResult.firstName; + this.extractSurname = true; /** - * full document image if enabled with returnFullDocumentImage property. + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.faceImageDpi = 250; /** - * The issuing authority of the Germany DL. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.issuingAuthority = nativeResult.issuingAuthority; + this.fullDocumentImageDpi = 250; /** - * The last name of the Germany DL owner. + * The extension factors for full document image. */ - this.lastName = nativeResult.lastName; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * The licence categories of the Germany DL. + * Defines whether face image will be available in result. */ - this.licenceCategories = nativeResult.licenceCategories; + this.returnFaceImage = false; /** - * The licence number of the Germany DL. + * Defines whether full document image will be available in */ - this.licenceNumber = nativeResult.licenceNumber; + this.returnFullDocumentImage = false; /** - * The place of birth of Germany DL owner. + * Defines whether signature image will be available in result. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.returnSignatureImage = false; /** - * image of the signature if enabled with returnSignatureImage property. + * The DPI (Dots Per Inch) for signature image that should be returned. */ - this.signatureImage = nativeResult.signatureImage; + this.signatureImageDpi = 250; + this.createResultFromNative = function (nativeResult) { return new GermanyIdFrontRecognizerResult(nativeResult); } + } -GermanyDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +GermanyIdFrontRecognizer.prototype = new Recognizer('GermanyIdFrontRecognizer'); -BlinkID.prototype.GermanyDlFrontRecognizerResult = GermanyDlFrontRecognizerResult; +BlinkID.prototype.GermanyIdFrontRecognizer = GermanyIdFrontRecognizer; /** - * Recognizer which can scan front side of Germany national DL cards + * Result object for GermanyIdOldRecognizer. */ -function GermanyDlFrontRecognizer() { - Recognizer.call(this, 'GermanyDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; +function GermanyIdOldRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Defines if date of birth of Germany DL owner should be extracted. - * - * + * Face image from the document */ - this.extractDateOfBirth = true; + this.faceImage = nativeResult.faceImage; /** - * Defines if date of expiry of Germany DL should be extracted. - * - * + * Image of the full document */ - this.extractDateOfExpiry = true; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Defines if date of issue of Germany DL should be extracted. - * - * + * The data extracted from the machine readable zone. */ - this.extractDateOfIssue = true; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * Defines if first name of Germany DL owner should be extracted. - * - * + * The place of birth of old German ID owner. */ - this.extractFirstName = true; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * Defines if issuing authority of Germany DL should be extracted. - * - * + * Signature image from the document */ - this.extractIssuingAuthority = true; + this.signatureImage = nativeResult.signatureImage; - /** - * Defines if last name of Germany DL owner should be extracted. - * - * - */ - this.extractLastName = true; +} + +GermanyIdOldRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.GermanyIdOldRecognizerResult = GermanyIdOldRecognizerResult; + +/** + * Recognizer which can scan old German ID. + */ +function GermanyIdOldRecognizer() { + Recognizer.call(this, 'GermanyIdOldRecognizer'); /** - * Defines if licence categories of Germany DL should be extracted. - * - * + * Defines whether glare detector is enabled. */ - this.extractLicenceCategories = true; + this.detectGlare = true; /** - * Defines if place of birth of Germany DL owner should be extracted. - * - * + * Defines if place of birth of old German ID owner should be extracted. */ this.extractPlaceOfBirth = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; - this.createResultFromNative = function (nativeResult) { return new GermanyDlFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new GermanyIdOldRecognizerResult(nativeResult); } } -GermanyDlFrontRecognizer.prototype = new Recognizer('GermanyDlFrontRecognizer'); +GermanyIdOldRecognizer.prototype = new Recognizer('GermanyIdOldRecognizer'); -BlinkID.prototype.GermanyDlFrontRecognizer = GermanyDlFrontRecognizer; +BlinkID.prototype.GermanyIdOldRecognizer = GermanyIdOldRecognizer; /** - * Result object for GermanyIdBackRecognizer. + * Result object for GermanyPassportRecognizer. */ -function GermanyIdBackRecognizerResult(nativeResult) { +function GermanyPassportRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The city of German ID owner. + * The issuing authority of German passport. */ - this.addressCity = nativeResult.addressCity; + this.authority = nativeResult.authority; /** - * The house number of German ID owner. - */ - this.addressHouseNumber = nativeResult.addressHouseNumber; - - /** - * The street of German ID owner. + * The date of issue of German passport. */ - this.addressStreet = nativeResult.addressStreet; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The zip code of German ID owner. + * Face image from the document */ - this.addressZipCode = nativeResult.addressZipCode; + this.faceImage = nativeResult.faceImage; /** - * The issuing authority of German ID. + * Image of the full document */ - this.authority = nativeResult.authority; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The colour of eyes of German ID owner. + * The given name of German passport owner. */ - this.colourOfEyes = nativeResult.colourOfEyes; + this.givenName = nativeResult.givenName; /** - * The date of issue of German ID. + * The data extracted from the machine readable zone. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * The full address of German ID owner. + * The nationality of German passport owner. */ - this.fullAddress = nativeResult.fullAddress; + this.nationality = nativeResult.nationality; /** - * full document image if enabled with returnFullDocumentImage property. + * The place of birth of German passport owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * The height of German ID owner. + * Signature image from the document */ - this.height = nativeResult.height; + this.signatureImage = nativeResult.signatureImage; /** - * The data extracted from the machine readable zone. + * The surname of German passport owner. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.surname = nativeResult.surname; } -GermanyIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +GermanyPassportRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.GermanyIdBackRecognizerResult = GermanyIdBackRecognizerResult; +BlinkID.prototype.GermanyPassportRecognizerResult = GermanyPassportRecognizerResult; /** - * Recognizer which can scan back side of German ID. + * Recognizer which can scan German passport. */ -function GermanyIdBackRecognizer() { - Recognizer.call(this, 'GermanyIdBackRecognizer'); +function GermanyPassportRecognizer() { + Recognizer.call(this, 'GermanyPassportRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of German ID owner should be extracted. - * - * + * Defines if issuing authority of German passport should be extracted. */ - this.extractAddress = true; + this.extractAuthority = true; /** - * Defines if issuing authority of German ID should be extracted. - * - * + * Defines if date of issue of German passport should be extracted. */ - this.extractAuthority = true; + this.extractDateOfIssue = true; /** - * Defines if colour of eyes of German ID owner should be extracted. - * - * + * Defines if given name of German passport owner should be extracted. */ - this.extractColourOfEyes = true; + this.extractGivenName = true; /** - * Defines if date of issue of German ID should be extracted. - * - * + * Defines if nationality of German passport owner should be extracted. */ - this.extractDateOfIssue = true; + this.extractNationality = true; /** - * Defines if height of German ID owner should be extracted. - * - * + * Defines if place of birth of German passport owner should be extracted. */ - this.extractHeight = true; + this.extractPlaceOfBirth = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if surname of German passport owner should be extracted. + */ + this.extractSurname = true; + + /** + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * 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 face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new GermanyIdBackRecognizerResult(nativeResult); } + /** + * Defines whether signature image will be available in result. + */ + this.returnSignatureImage = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. + */ + this.signatureImageDpi = 250; + + this.createResultFromNative = function (nativeResult) { return new GermanyPassportRecognizerResult(nativeResult); } } -GermanyIdBackRecognizer.prototype = new Recognizer('GermanyIdBackRecognizer'); +GermanyPassportRecognizer.prototype = new Recognizer('GermanyPassportRecognizer'); -BlinkID.prototype.GermanyIdBackRecognizer = GermanyIdBackRecognizer; +BlinkID.prototype.GermanyPassportRecognizer = GermanyPassportRecognizer; /** - * Result object for GermanyIdFrontRecognizer. + * Result object for HongKongIdFrontRecognizer. */ -function GermanyIdFrontRecognizerResult(nativeResult) { +function HongKongIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The CAN number of Germany ID. + * The commercial code of Hong Kong ID owner */ - this.canNumber = nativeResult.canNumber; + this.commercialCode = nativeResult.commercialCode; /** - * The date of birth of Germany ID owner. + * The date of birth of Hong Kong ID owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Germany ID. + * The date of issue of Hong Kong ID */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The document number of Germany ID. + * The document number of Hong Kong ID */ this.documentNumber = nativeResult.documentNumber; /** - * 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; /** - * The given names of Germany ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The nationality of Germany ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place of birth of Germany ID owner. + * The full name of Hong Kong ID owner */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.fullName = nativeResult.fullName; /** - * image of the signature if enabled with returnSignatureImage property. + * The residential status of Hong Kong ID owner */ - this.signatureImage = nativeResult.signatureImage; + this.residentialStatus = nativeResult.residentialStatus; /** - * The surname of Germany ID owner. + * The sex of Hong Kong ID owner */ - this.surname = nativeResult.surname; + this.sex = nativeResult.sex; } -GermanyIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +HongKongIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.GermanyIdFrontRecognizerResult = GermanyIdFrontRecognizerResult; +BlinkID.prototype.HongKongIdFrontRecognizerResult = HongKongIdFrontRecognizerResult; /** - * Recognizer which can scan front side of Germany national ID cards. + * Recognizer which can scan front side of Hong Kong national ID cards. */ -function GermanyIdFrontRecognizer() { - Recognizer.call(this, 'GermanyIdFrontRecognizer'); +function HongKongIdFrontRecognizer() { + Recognizer.call(this, 'HongKongIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if CAN number of Germany ID should be extracted. - * - * - */ - this.extractCanNumber = true; - - /** - * Defines if date of expiry of Germany ID should be extracted. - * - * + * Defines if commercial code of Hong Kong ID owner should be extracted */ - this.extractDateOfExpiry = true; + this.extractCommercialCode = true; /** - * Defines if document number of Germany ID should be extracted. - * - * + * Defines if date of birth of Hong Kong ID owner should be extracted */ - this.extractDocumentNumber = true; + this.extractDateOfBirth = true; /** - * Defines if given names of Germany ID owner should be extracted. - * - * + * Defines if date of issue of Hong Kong ID should be extracted */ - this.extractGivenNames = true; + this.extractDateOfIssue = true; /** - * Defines if nationality of Germany ID owner should be extracted. - * - * + * Defines if full name of Hong Kong ID owner should be extracted */ - this.extractNationality = true; + this.extractFullName = true; /** - * Defines if place of birth of Germany ID owner should be extracted. - * - * + * Defines if residential status of Hong Kong ID owner should be extracted */ - this.extractPlaceOfBirth = true; + this.extractResidentialStatus = true; /** - * Defines if surname of Germany ID owner should be extracted. - * - * + * Defines if sex of Hong Kong ID owner should be extracted */ - this.extractSurname = true; + this.extractSex = 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; - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new HongKongIdFrontRecognizerResult(nativeResult); } } -GermanyIdFrontRecognizer.prototype = new Recognizer('GermanyIdFrontRecognizer'); +HongKongIdFrontRecognizer.prototype = new Recognizer('HongKongIdFrontRecognizer'); -BlinkID.prototype.GermanyIdFrontRecognizer = GermanyIdFrontRecognizer; +BlinkID.prototype.HongKongIdFrontRecognizer = HongKongIdFrontRecognizer; /** - * Result object for GermanyIdOldRecognizer. + * Result object for IndonesiaIdFrontRecognizer. */ -function GermanyIdOldRecognizerResult(nativeResult) { +function IndonesiaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * The address of the Indonesian ID owner. */ - this.faceImage = nativeResult.faceImage; + this.address = nativeResult.address; /** - * full document image if enabled with returnFullDocumentImage property. + * The blood type of the Indonesian ID owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.bloodType = nativeResult.bloodType; /** - * The data extracted from the machine readable zone. + * The citizenship of the Indonesian ID owner. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.citizenship = nativeResult.citizenship; /** - * The place of birth of old German ID owner. + * The city of the Indonesian ID owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.city = nativeResult.city; /** - * image of the signature if enabled with returnSignatureImage property. + * The date of birth of the Indonesian ID owner. */ - this.signatureImage = nativeResult.signatureImage; - -} - -GermanyIdOldRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.GermanyIdOldRecognizerResult = GermanyIdOldRecognizerResult; - -/** - * Recognizer which can scan old German ID. - */ -function GermanyIdOldRecognizer() { - Recognizer.call(this, 'GermanyIdOldRecognizer'); + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Defines if glare detection should be turned on/off. - * - * + * The date of expiry of the Indonesian ID card. */ - this.detectGlare = true; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Defines if place of birth of old German ID owner should be extracted. - * - * + * The date of expiry of the Indonesian ID card is permanent. */ - this.extractPlaceOfBirth = true; + this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The district of the Indonesian ID owner. */ - this.faceImageDpi = 250; + this.district = nativeResult.district; /** - * 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; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The document number of Indonesian ID card. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.documentNumber = nativeResult.documentNumber; /** - * Sets whether face image from ID card should be extracted - * - * + * Face image from the document */ - this.returnFaceImage = false; + this.faceImage = nativeResult.faceImage; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Image of the full document */ - this.returnFullDocumentImage = false; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Sets whether signature image from ID card should be extracted. - * - * + * The Kel/Desa of the Indonesian ID owner. */ - this.returnSignatureImage = false; + this.kelDesa = nativeResult.kelDesa; /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The marital status of the Indonesian ID owner. */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyIdOldRecognizerResult(nativeResult); } - -} - -GermanyIdOldRecognizer.prototype = new Recognizer('GermanyIdOldRecognizer'); - -BlinkID.prototype.GermanyIdOldRecognizer = GermanyIdOldRecognizer; - -/** - * Result object for GermanyPassportRecognizer. - */ -function GermanyPassportRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); + this.maritalStatus = nativeResult.maritalStatus; /** - * The issuing authority of German passport. + * The name of the Indonesian ID owner. */ - this.authority = nativeResult.authority; + this.name = nativeResult.name; /** - * The date of issue of German passport. + * The occupation of the Indonesian ID owner. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.occupation = nativeResult.occupation; /** - * face image from the document if enabled with returnFaceImage property. + * The place of birth of the Indonesian ID owner. */ - this.faceImage = nativeResult.faceImage; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * full document image if enabled with returnFullDocumentImage property. + * The province of the Indonesian ID owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.province = nativeResult.province; /** - * The given name of German passport owner. + * The religion of the Indonesian ID owner. */ - this.givenName = nativeResult.givenName; + this.religion = nativeResult.religion; /** - * The data extracted from the machine readable zone. + * The RT number of the Indonesian ID owner. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.rt = nativeResult.rt; /** - * The nationality of German passport owner. + * The RW number of the Indonesian ID owner. */ - this.nationality = nativeResult.nationality; + this.rw = nativeResult.rw; /** - * The place of birth of German passport owner. + * The sex of the Indonesian ID owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; - /** - * The surname of German passport owner. - */ - this.surname = nativeResult.surname; - } -GermanyPassportRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +IndonesiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.GermanyPassportRecognizerResult = GermanyPassportRecognizerResult; +BlinkID.prototype.IndonesiaIdFrontRecognizerResult = IndonesiaIdFrontRecognizerResult; /** - * Recognizer which can scan German passport. + * Recognizer which can scan front side of Indonesian national ID cards. */ -function GermanyPassportRecognizer() { - Recognizer.call(this, 'GermanyPassportRecognizer'); +function IndonesiaIdFrontRecognizer() { + Recognizer.call(this, 'IndonesiaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if issuing authority of German passport should be extracted. - * - * + * Defines if address of Indonesian ID owner should be extracted. */ - this.extractAuthority = true; + this.extractAddress = true; /** - * Defines if date of issue of German passport should be extracted. - * - * + * Defines if blood type of Indonesian ID owner should be extracted. */ - this.extractDateOfIssue = true; + this.extractBloodType = true; /** - * Defines if given name of German passport owner should be extracted. - * - * + * Defines if citizenship of Indonesian ID owner should be extracted. */ - this.extractGivenName = true; + this.extractCitizenship = true; /** - * Defines if nationality of German passport owner should be extracted. - * - * + * Defines if city of Indonesian ID owner should be extracted. */ - this.extractNationality = true; + this.extractCity = true; /** - * Defines if place of birth of German passport owner should be extracted. - * - * + * Defines if date of expiry of Indonesian ID card should be extracted. + */ + this.extractDateOfExpiry = true; + + /** + * Defines if district of Indonesian ID owner should be extracted. + */ + this.extractDistrict = true; + + /** + * Defines if Kel/Desa of Indonesian ID owner should be extracted. + */ + this.extractKelDesa = true; + + /** + * Defines if marital status of Indonesian ID owner should be extracted. + */ + this.extractMaritalStatus = true; + + /** + * Defines if name of Indonesian ID owner should be extracted. + */ + this.extractName = true; + + /** + * Defines if occupation of Indonesian ID owner should be extracted. + */ + this.extractOccupation = true; + + /** + * Defines if place of birth of Indonesian ID owner should be extracted. */ this.extractPlaceOfBirth = true; /** - * Defines if surname of German passport owner should be extracted. - * - * + * Defines if religion of Indonesian ID owner should be extracted. */ - this.extractSurname = true; + this.extractReligion = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if RT number of Indonesian ID owner should be extracted. + */ + this.extractRt = true; + + /** + * Defines if RW number of Indonesian ID owner should be extracted. + */ + this.extractRw = true; + + /** + * 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; - this.createResultFromNative = function (nativeResult) { return new GermanyPassportRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new IndonesiaIdFrontRecognizerResult(nativeResult); } } -GermanyPassportRecognizer.prototype = new Recognizer('GermanyPassportRecognizer'); +IndonesiaIdFrontRecognizer.prototype = new Recognizer('IndonesiaIdFrontRecognizer'); -BlinkID.prototype.GermanyPassportRecognizer = GermanyPassportRecognizer; +BlinkID.prototype.IndonesiaIdFrontRecognizer = IndonesiaIdFrontRecognizer; /** - * Result object for HongKongIdFrontRecognizer. + * Result object for IrelandDlFrontRecognizer. */ -function HongKongIdFrontRecognizerResult(nativeResult) { +function IrelandDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The commerical Code of the Hong Kong ID. + * The address of Ireland DL owner */ - this.commercialCode = nativeResult.commercialCode; + this.address = nativeResult.address; /** - * The date of birth of the Hong Kong ID ownder. + * The date of birth of Ireland DL owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The issue date of the Hong Kong ID owner. + * The date of expiry of Ireland DL + */ + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + + /** + * The date of issue of Ireland DL */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The document number of the Hong Kong card. + * The driver number of Ireland DL owner */ - this.documentNumber = nativeResult.documentNumber; + this.driverNumber = nativeResult.driverNumber; /** - * 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. + * The first name of Ireland DL owner + */ + this.firstName = nativeResult.firstName; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The full name of the Hong Kong ID owner. + * The issuing authority of Ireland DL */ - this.fullName = nativeResult.fullName; + this.issuedBy = nativeResult.issuedBy; /** - * The residential status of the Hong Kong ID. + * The licence categories of Ireland DL */ - this.residentialStatus = nativeResult.residentialStatus; + this.licenceCategories = nativeResult.licenceCategories; /** - * The sex of the Hong Kong ID owner. + * The licence number of Ireland DL */ - this.sex = nativeResult.sex; + this.licenceNumber = nativeResult.licenceNumber; + + /** + * The place of birth of Ireland DL owner + */ + this.placeOfBirth = nativeResult.placeOfBirth; + + /** + * Signature image from the document + */ + this.signatureImage = nativeResult.signatureImage; + + /** + * The surname of Ireland DL owner + */ + this.surname = nativeResult.surname; } -HongKongIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +IrelandDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.HongKongIdFrontRecognizerResult = HongKongIdFrontRecognizerResult; +BlinkID.prototype.IrelandDlFrontRecognizerResult = IrelandDlFrontRecognizerResult; /** - * Class for configuring Hong Kong ID Front Recognizer. - * - * Hong Kong ID Front recognizer is used for scanning front side of Hong Kong ID. + * Recognizer which can scan front side of Ireland drivers license. */ -function HongKongIdFrontRecognizer() { - Recognizer.call(this, 'HongKongIdFrontRecognizer'); +function IrelandDlFrontRecognizer() { + Recognizer.call(this, 'IrelandDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if commercial code should be extracted from Hong Kong ID - * - * + * Defines if address of Ireland DL owner should be extracted */ - this.extractCommercialCode = true; + this.extractAddress = true; /** - * Defines if owner's date of birth should be extracted from Hong Kong ID - * - * + * Defines if date of birth of Ireland DL owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if card's date of issue should be extracted from Hong Kong ID - * - * + * Defines if date of expiry of Ireland DL should be extracted */ - this.extractDateOfIssue = true; + this.extractDateOfExpiry = true; /** - * Defines if owner's full name should be extracted from Hong Kong ID - * - * + * Defines if date of issue of Ireland DL should be extracted */ - this.extractFullName = true; + this.extractDateOfIssue = true; /** - * Defines if card's residential status should be extracted from Hong Kong ID - * - * + * Defines if first name of Ireland DL owner should be extracted */ - this.extractResidentialStatus = true; + this.extractFirstName = true; /** - * Defines if owner's sex should be extracted from Hong Kong ID - * - * + * Defines if issuing authority of Ireland DL should be extracted */ - this.extractSex = true; + this.extractIssuedBy = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if licence categories of Ireland DL should be extracted */ - this.faceImageDpi = 250; + this.extractLicenceCategories = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if licence number of Ireland DL should be extracted */ - this.fullDocumentImageDpi = 250; + this.extractLicenceNumber = true; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines if place of birth of Ireland DL owner should be extracted */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractPlaceOfBirth = true; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines if surname of Ireland DL owner should be extracted */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new HongKongIdFrontRecognizerResult(nativeResult); } - -} - -HongKongIdFrontRecognizer.prototype = new Recognizer('HongKongIdFrontRecognizer'); - -BlinkID.prototype.HongKongIdFrontRecognizer = HongKongIdFrontRecognizer; - -/** - * Result object for IndonesiaIdFrontRecognizer. - */ -function IndonesiaIdFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * The address of the front side of the Indonesia Id owner. - */ - this.address = nativeResult.address; + this.extractSurname = true; /** - * The blood Type of the front side of the Indonesia Id owner. + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.bloodType = nativeResult.bloodType; + this.faceImageDpi = 250; /** - * The citizenship of the front side of the Indonesia Id owner. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.citizenship = nativeResult.citizenship; + this.fullDocumentImageDpi = 250; /** - * The city of the front side of the Indonesia Id owner. + * The extension factors for full document image. */ - this.city = nativeResult.city; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * The date Of Birth of the front side of the Indonesia Id owner. + * Defines whether face image will be available in result. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.returnFaceImage = false; /** - * The date Of Expiry of the front side of the Indonesia Id owner. + * Defines whether full document image will be available in */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.returnFullDocumentImage = false; /** - * The date Of Expiry Permanent of the front side of the Indonesia Id owner. + * Defines whether signature image will be available in result. */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; + this.returnSignatureImage = false; /** - * The district of the front side of the Indonesia Id owner. + * The DPI (Dots Per Inch) for signature image that should be returned. */ - this.district = nativeResult.district; + this.signatureImageDpi = 250; - /** - * The document Number of the front side of the Indonesia Id owner. - */ - this.documentNumber = nativeResult.documentNumber; + this.createResultFromNative = function (nativeResult) { return new IrelandDlFrontRecognizerResult(nativeResult); } + +} + +IrelandDlFrontRecognizer.prototype = new Recognizer('IrelandDlFrontRecognizer'); + +BlinkID.prototype.IrelandDlFrontRecognizer = IrelandDlFrontRecognizer; + +/** + * Result object for ItalyDlFrontRecognizer. + */ +function ItalyDlFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * The address of the Italian DL owner. */ - this.faceImage = nativeResult.faceImage; + this.address = nativeResult.address; /** - * full document image if enabled with returnFullDocumentImage property. + * The date of birth of the Italian DL owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The kel Desa of the front side of the Indonesia Id owner. + * The date of expiry of the Italian DL card. */ - this.kelDesa = nativeResult.kelDesa; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The marital Status of the front side of the Indonesia Id owner. + * The date of issue of the Italian DL card. */ - this.maritalStatus = nativeResult.maritalStatus; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The name of the front side of the Indonesia Id owner. + * Face image from the document */ - this.name = nativeResult.name; + this.faceImage = nativeResult.faceImage; /** - * The occupation of the front side of the Indonesia Id owner. + * Image of the full document */ - this.occupation = nativeResult.occupation; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The place Of Birth of the front side of the Indonesia Id owner. + * The given name of the Italian DL owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.givenName = nativeResult.givenName; /** - * The province of the front side of the Indonesia Id owner. + * The issuing authority of the Italian DL card. */ - this.province = nativeResult.province; + this.issuingAuthority = nativeResult.issuingAuthority; /** - * The religion of the front side of the Indonesia Id owner. + * The licence categories of the Italian DL owner. */ - this.religion = nativeResult.religion; + this.licenceCategories = nativeResult.licenceCategories; /** - * The rt of the front side of the Indonesia Id owner. + * The licence number of the Italian DL owner. */ - this.rt = nativeResult.rt; + this.licenceNumber = nativeResult.licenceNumber; /** - * The rw of the front side of the Indonesia Id owner. + * The place of birth of the Italian DL owner. */ - this.rw = nativeResult.rw; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * The sex of the front side of the Indonesia Id owner. + * Signature image from the document */ - this.sex = nativeResult.sex; + this.signatureImage = nativeResult.signatureImage; /** - * image of the signature if enabled with returnSignatureImage property. + * The surname of the Italian DL owner. */ - this.signatureImage = nativeResult.signatureImage; + this.surname = nativeResult.surname; } -IndonesiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +ItalyDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.IndonesiaIdFrontRecognizerResult = IndonesiaIdFrontRecognizerResult; +BlinkID.prototype.ItalyDlFrontRecognizerResult = ItalyDlFrontRecognizerResult; /** - * Recognizer which can scan front side of Indonesian national ID cards. + * Recognizer which can scan front side of Italian driver licence. */ -function IndonesiaIdFrontRecognizer() { - Recognizer.call(this, 'IndonesiaIdFrontRecognizer'); +function ItalyDlFrontRecognizer() { + Recognizer.call(this, 'ItalyDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Indonesian ID owner should be extracted. - * - * + * Defines if address of Italian DL owner should be extracted. */ this.extractAddress = true; /** - * Defines if blood type of Indonesian ID owner should be extracted. - * - * - */ - this.extractBloodType = true; - - /** - * Defines if citizenship of Indonesian ID owner should be extracted. - * - * - */ - this.extractCitizenship = true; - - /** - * Defines if city of Indonesian ID owner should be extracted. - * - * + * Defines if date of birth of Italian DL owner should be extracted. */ - this.extractCity = true; + this.extractDateOfBirth = true; /** - * Defines if date of expiry of Indonesian ID card should be extracted. - * - * + * Defines if date of expiry of Italian DL card should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if district of Indonesian ID owner should be extracted. - * - * - */ - this.extractDistrict = true; - - /** - * Defines if Kel/Desa of Indonesian ID owner should be extracted. - * - * + * Defines if date of issue of Italian DL card should be extracted. */ - this.extractKelDesa = true; + this.extractDateOfIssue = true; /** - * Defines if marital status of Indonesian ID owner should be extracted. - * - * + * Defines if given name of Italian DL owner should be extracted. */ - this.extractMaritalStatus = true; + this.extractGivenName = true; /** - * Defines if name of Indonesian ID owner should be extracted. - * - * + * Defines if issuing authority of Italian DL card should be extracted. */ - this.extractName = true; + this.extractIssuingAuthority = true; /** - * Defines if occupation of Indonesian ID owner should be extracted. - * - * + * Defines if licence categories of Italian DL owner should be extracted. */ - this.extractOccupation = true; + this.extractLicenceCategories = true; /** - * Defines if place of birth of Indonesian ID owner should be extracted. - * - * + * Defines if place of birth of Italian DL owner should be extracted. */ this.extractPlaceOfBirth = true; /** - * Defines if religion of Indonesian ID owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if RT number of Indonesian ID owner should be extracted. - * - * - */ - this.extractRt = true; - - /** - * Defines if RW number of Indonesian ID owner should be extracted. - * - * + * Defines if surname of Italian DL owner should be extracted. */ - this.extractRw = true; + this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; - this.createResultFromNative = function (nativeResult) { return new IndonesiaIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new ItalyDlFrontRecognizerResult(nativeResult); } } -IndonesiaIdFrontRecognizer.prototype = new Recognizer('IndonesiaIdFrontRecognizer'); +ItalyDlFrontRecognizer.prototype = new Recognizer('ItalyDlFrontRecognizer'); -BlinkID.prototype.IndonesiaIdFrontRecognizer = IndonesiaIdFrontRecognizer; +BlinkID.prototype.ItalyDlFrontRecognizer = ItalyDlFrontRecognizer; /** - * Result object for IrelandDlFrontRecognizer. + * Result object for JordanCombinedRecognizer. */ -function IrelandDlFrontRecognizerResult(nativeResult) { +function JordanCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the front side of the Ireland Dl owner. + * The date of birth of Jordan ID owner. */ - this.address = nativeResult.address; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date Of Birth of the front side of the Ireland Dl owner. + * The document date of expiry of the Jordan ID. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date Of Expiry of the front side of the Ireland Dl owner. + * Defines digital signature of recognition results. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.digitalSignature = nativeResult.digitalSignature; /** - * The date Of Issue of the front side of the Ireland Dl owner. + * Defines digital signature version. */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * The driver Number of the front side of the Ireland Dl owner. + * Defines {true} if data from scanned parts/sides of the document match, */ - this.driverNumber = nativeResult.driverNumber; + this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * The document number of Jordan ID. + */ + this.documentNumber = nativeResult.documentNumber; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The first Name of the front side of the Ireland Dl owner. + * Back side image of the document */ - this.firstName = nativeResult.firstName; + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * full document image if enabled with returnFullDocumentImage property. + * Front side image of the document */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** - * The issued By of the front side of the Ireland Dl owner. + * The issuer of Jordan ID. */ - this.issuedBy = nativeResult.issuedBy; + this.issuer = nativeResult.issuer; /** - * The licence Categories of the front side of the Ireland Dl owner. + * True if all check digits inside MRZ are correct, false otherwise. */ - this.licenceCategories = nativeResult.licenceCategories; + this.mrzVerified = nativeResult.mrzVerified; /** - * The licence Number of the front side of the Ireland Dl owner. + * The name of the Jordan ID owner. */ - this.licenceNumber = nativeResult.licenceNumber; + this.name = nativeResult.name; /** - * The place Of Birth of the front side of the Ireland Dl owner. + * The national number of Jordan ID owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.nationalNumber = nativeResult.nationalNumber; /** - * image of the signature if enabled with returnSignatureImage property. + * Nationality of the Jordan ID owner. */ - this.signatureImage = nativeResult.signatureImage; + this.nationality = nativeResult.nationality; /** - * The surname of the front side of the Ireland Dl owner. + * {true} if recognizer has finished scanning first side and is now scanning back side, */ - this.surname = nativeResult.surname; + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + + /** + * Sex of the Jordan ID owner. + */ + this.sex = nativeResult.sex; } -IrelandDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +JordanCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.IrelandDlFrontRecognizerResult = IrelandDlFrontRecognizerResult; +BlinkID.prototype.JordanCombinedRecognizerResult = JordanCombinedRecognizerResult; /** - * Recognizer which can scan front side of Ireland drivers license. + * Recognizer for combined reading of both front and back side of Jordan ID. + * */ -function IrelandDlFrontRecognizer() { - Recognizer.call(this, 'IrelandDlFrontRecognizer'); +function JordanCombinedRecognizer() { + Recognizer.call(this, 'JordanCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Ireland DL owner should be extracted. - * - * + * True if date of birth of Jordan owner is being extracted */ - this.extractAddress = true; + this.extractDateOfBirth = true; /** - * Defines if date of birth of Ireland DL owner should be extracted. - * - * + * True if name of Jordan ID owner is being extracted */ - this.extractDateOfBirth = true; + this.extractName = true; /** - * Defines if date of expiry of Ireland DL should be extracted. - * - * + * True if sex of Jordan owner is being extracted */ - this.extractDateOfExpiry = true; + this.extractSex = true; /** - * Defines if date of issue of Ireland DL should be extracted. - * - * + * Defines whether face image will be available in result. */ - this.extractDateOfIssue = true; + this.returnFaceImage = false; /** - * Defines if first name of Ireland DL owner should be extracted. - * - * + * Defines whether full document image will be available in */ - this.extractFirstName = true; + this.returnFullDocumentImage = false; /** - * Defines if issuing authority of Ireland DL should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if licence categories of Ireland DL should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if licence number of Ireland DL should be extracted. - * - * - */ - this.extractLicenceNumber = true; - - /** - * Defines if place of birth of Ireland DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Ireland DL owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - 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 - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new IrelandDlFrontRecognizerResult(nativeResult); } - -} - -IrelandDlFrontRecognizer.prototype = new Recognizer('IrelandDlFrontRecognizer'); - -BlinkID.prototype.IrelandDlFrontRecognizer = IrelandDlFrontRecognizer; - -/** - * Result object for ItalyDlFrontRecognizer. - */ -function ItalyDlFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * The address of the front side of the Italy Dl owner. - */ - this.address = nativeResult.address; - - /** - * The date Of Birth of the front side of the Italy Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the front side of the Italy Dl owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Issue of the front side of the Italy Dl owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given Name of the front side of the Italy Dl owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The issuing Authority of the front side of the Italy Dl owner. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The licence Categories of the front side of the Italy Dl owner. - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence Number of the front side of the Italy Dl owner. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The place Of Birth of the front side of the Italy Dl owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the front side of the Italy Dl owner. - */ - this.surname = nativeResult.surname; - -} - -ItalyDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.ItalyDlFrontRecognizerResult = ItalyDlFrontRecognizerResult; - -/** - * Recognizer which can scan front side of Italian driver licence. - */ -function ItalyDlFrontRecognizer() { - Recognizer.call(this, 'ItalyDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Italian DL owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Italian DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Italian DL card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Italian DL card should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if given name of Italian DL owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if issuing authority of Italian DL card should be extracted. - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if licence categories of Italian DL owner should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if place of birth of Italian DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Italian DL owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - 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 - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new ItalyDlFrontRecognizerResult(nativeResult); } - -} - -ItalyDlFrontRecognizer.prototype = new Recognizer('ItalyDlFrontRecognizer'); - -BlinkID.prototype.ItalyDlFrontRecognizer = ItalyDlFrontRecognizer; - -/** - * Result object for JordanCombinedRecognizer. - */ -function JordanCombinedRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * The Date Of Birth of the Jordan ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The Date of expiry of the Jordan ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The Document Number of the Jordan ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The issuer of the Jordan ID. - */ - this.issuer = nativeResult.issuer; - - /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The Name of the Jordan ID owner. - */ - this.name = nativeResult.name; - - /** - * The Document Number of the Jordan ID. - */ - this.nationalNumber = nativeResult.nationalNumber; - - /** - * The nationality of the Jordan ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * 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; - - /** - * The Sex of the Jordan ID owner. - */ - this.sex = nativeResult.sex; - -} - -JordanCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.JordanCombinedRecognizerResult = JordanCombinedRecognizerResult; - -/** - * Jordan ID Combined Recognizer. - * - * Jordan ID Combined recognizer is used for scanning both front and back side of Jordan ID. - */ -function JordanCombinedRecognizer() { - Recognizer.call(this, 'JordanCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's date of birth should be extracted from Jordan ID - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if owner's name should be extracted from Jordan ID - * - * - */ - this.extractName = true; - - /** - * Defines if owner's sex should be extracted from Jordan ID - * - * - */ - this.extractSex = true; - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new JordanCombinedRecognizerResult(nativeResult); } - -} - -JordanCombinedRecognizer.prototype = new Recognizer('JordanCombinedRecognizer'); - -BlinkID.prototype.JordanCombinedRecognizer = JordanCombinedRecognizer; - -/** - * Result object for JordanIdBackRecognizer. - */ -function JordanIdBackRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * Holder's date of birth. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * Date of expiry of the document. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document code. Document code contains two characters. For MRTD the first character - * shall be A, C or I. The second character shall be discretion of the issuing State or organization - * except that V shall not be used, and C shall not be used after A except in the crew member - * certificate. On machine-readable passports (MRP) first character shall be P to designate an MRP. - * One additional letter may be used, at the discretion of the issuing State or organization, - * to designate a particular MRP. If the second character position is not used for this purpose, it - * shall be filled by the filter character <. - */ - this.documentCode = nativeResult.documentCode; - - /** - * Unique number of the document. Document number contains up to 9 characters. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * Three-letter code which indicate the issuing State. - * Three-letter codes are based on Alpha-3 codes for entities specified in - * ISO 3166-1, with extensions for certain States. - */ - this.issuer = nativeResult.issuer; - - /** - * Boolean value which denotes that MRTD result is successfully parsed. When the result is parsed, all - * properties below are present. - * - * If in the PPMrtdRecognizerSettings you specified allowUnparsedResults = true, then it can happen that - * MRTDRecognizerResult is not parsed. When this happens, this property will be equal to true. - * - * In that case, you can use rawOcrResult property to obtain the raw result of the OCR process, so you can - * implement MRTD parsing in your application. - * - * @return true if MRTD Recognizer result was successfully parsed and all the fields are extracted. false otherwise. - */ - this.mrzParsed = nativeResult.mrzParsed; - - /** - * The entire Machine Readable Zone text from ID. This text is usually used for parsing - * other elements. - */ - this.mrzText = nativeResult.mrzText; - - /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * Nationality of the holder represented by a three-letter code. Three-letter codes are based - * on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States. - */ - this.nationality = nativeResult.nationality; - - /** - * First optional data. Returns nil or empty string if not available. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. - */ - this.opt1 = nativeResult.opt1; - - /** - * Second optional data. Returns nil or empty string if not available. - * Element does not exist on Passports and Visas. To see which document was scanned use documentType property. - */ - this.opt2 = nativeResult.opt2; - - /** - * Returns the primary indentifier. If there is more than one component, they are separated with space. - * - * @return primary id of a card holder. - */ - this.primaryId = nativeResult.primaryId; - - /** - * Returns the secondary identifier. If there is more than one component, they are separated with space. - * - * @return secondary id of a card holder - */ - this.secondaryId = nativeResult.secondaryId; - - /** - * Sex of the card holder. Sex is specified by use of the single initial, capital - * letter F for female, M for male or < for unspecified. - */ - this.sex = nativeResult.sex; - -} - -JordanIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.JordanIdBackRecognizerResult = JordanIdBackRecognizerResult; - -/** - * Class for configuring Jordan ID Back Recognizer. - * - * Jordan ID Back recognizer is used for scanning back side of Jordan ID. - */ -function JordanIdBackRecognizer() { - Recognizer.call(this, 'JordanIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new JordanIdBackRecognizerResult(nativeResult); } - -} - -JordanIdBackRecognizer.prototype = new Recognizer('JordanIdBackRecognizer'); - -BlinkID.prototype.JordanIdBackRecognizer = JordanIdBackRecognizer; - -/** - * Result object for JordanIdFrontRecognizer. - */ -function JordanIdFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * The Date Of Birth of the Jordan ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The Name of the Jordan ID owner. - */ - this.name = nativeResult.name; - - /** - * The National Number of the Jordan ID. - */ - this.nationalNumber = nativeResult.nationalNumber; - - /** - * The Sex of the Jordan ID owner. - */ - this.sex = nativeResult.sex; - -} - -JordanIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.JordanIdFrontRecognizerResult = JordanIdFrontRecognizerResult; - -/** - * Class for configuring Jordan ID Front Recognizer. - * - * Jordan ID Front recognizer is used for scanning front side of Jordan ID. - */ -function JordanIdFrontRecognizer() { - Recognizer.call(this, 'JordanIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's date of birth should be extracted from Jordan ID - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if owner's name should be extracted from Jordan ID - * - * - */ - this.extractName = true; - - /** - * Defines if owner's sex should be extracted from Jordan ID - * - * - */ - this.extractSex = true; - - /** - * 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; - - /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether or not recognition result should be signed. */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new JordanIdFrontRecognizerResult(nativeResult); } - -} - -JordanIdFrontRecognizer.prototype = new Recognizer('JordanIdFrontRecognizer'); - -BlinkID.prototype.JordanIdFrontRecognizer = JordanIdFrontRecognizer; - -/** - * Result object for KuwaitIdBackRecognizer. - */ -function KuwaitIdBackRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The serial number of Kuwait ID - */ - this.serialNo = nativeResult.serialNo; - -} - -KuwaitIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.KuwaitIdBackRecognizerResult = KuwaitIdBackRecognizerResult; - -/** - * Recognizer which can scan back side of Kuwait national ID cards. - */ -function KuwaitIdBackRecognizer() { - Recognizer.call(this, 'KuwaitIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if serial number of Kuwait ID should be extracted - * - * - */ - this.extractSerialNo = true; - - /** - * 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; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new KuwaitIdBackRecognizerResult(nativeResult); } - -} - -KuwaitIdBackRecognizer.prototype = new Recognizer('KuwaitIdBackRecognizer'); - -BlinkID.prototype.KuwaitIdBackRecognizer = KuwaitIdBackRecognizer; - -/** - * Result object for KuwaitIdFrontRecognizer. - */ -function KuwaitIdFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * The birth Date of the front side of the Kuroom wait Id owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The civil Id Number of the front side of the Kuwait Id owner. - */ - this.civilIdNumber = nativeResult.civilIdNumber; - - /** - * The expiry Date of the front side of the Kuwait Id owner. - */ - this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The name of the front side of the Kuwait Id owner. - */ - this.name = nativeResult.name; - - /** - * The nationality of the front side of the Kuwait Id owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The sex of the front side of the Kuwait Id owner. - */ - this.sex = nativeResult.sex; + this.signResult = false; + this.createResultFromNative = function (nativeResult) { return new JordanCombinedRecognizerResult(nativeResult); } + } -KuwaitIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +JordanCombinedRecognizer.prototype = new Recognizer('JordanCombinedRecognizer'); -BlinkID.prototype.KuwaitIdFrontRecognizerResult = KuwaitIdFrontRecognizerResult; +BlinkID.prototype.JordanCombinedRecognizer = JordanCombinedRecognizer; /** - * Recognizer which can scan front side of Kuwait national ID cards. + * Result object for JordanIdBackRecognizer. */ -function KuwaitIdFrontRecognizer() { - Recognizer.call(this, 'KuwaitIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Kuwait ID owner should be extracted. - * - * - */ - this.extractBirthDate = true; - - /** - * Defines if name of Kuwait ID owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of Kuwait ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if sex of Kuwait ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - 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 - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); +function JordanIdBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines holder's date of birth if it is successfully converted to result from MRZ date format: YYMMDD. */ - this.returnFaceImage = false; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines date of expiry if it is successfully converted to result from MRZ date format: YYMMDD. */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new KuwaitIdFrontRecognizerResult(nativeResult); } - -} - -KuwaitIdFrontRecognizer.prototype = new Recognizer('KuwaitIdFrontRecognizer'); - -BlinkID.prototype.KuwaitIdFrontRecognizer = KuwaitIdFrontRecognizer; - -/** - * Result object for MalaysiaDlFrontRecognizer. - */ -function MalaysiaDlFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The city of the front side of the Malaysia Dl owner. + * Defines document code. Document code contains two characters. For MRTD the first character shall */ - this.city = nativeResult.city; + this.documentCode = nativeResult.documentCode; /** - * The dl Class of the front side of the Malaysia Dl owner. + * Defines document number. Document number contains up to 9 characters. */ - this.dlClass = nativeResult.dlClass; + this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Image of the full document */ - this.faceImage = nativeResult.faceImage; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The full Address of the front side of the Malaysia Dl owner. + * Defines three-letter or two-letter code which indicate the issuing State. Three-letter codes are based */ - this.fullAddress = nativeResult.fullAddress; + this.issuer = nativeResult.issuer; /** - * full document image if enabled with returnFullDocumentImage property. + * Defines true if Machine Readable Zone has been parsed, false otherwise. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.mrzParsed = nativeResult.mrzParsed; /** - * The identity Number of the front side of the Malaysia Dl owner. + * Defines the entire Machine Readable Zone text from ID. This text is usually used for parsing */ - this.identityNumber = nativeResult.identityNumber; + this.mrzText = nativeResult.mrzText; /** - * The name of the front side of the Malaysia Dl owner. + * Defines true if all check digits inside MRZ are correct, false otherwise. */ - this.name = nativeResult.name; + this.mrzVerified = nativeResult.mrzVerified; /** - * The nationality of the front side of the Malaysia Dl owner. + * Defines nationality of the holder represented by a three-letter or two-letter code. Three-letter */ this.nationality = nativeResult.nationality; /** - * The owner State of the front side of the Malaysia Dl owner. + * Defines first optional data.null or empty string if not available. */ - this.ownerState = nativeResult.ownerState; + this.opt1 = nativeResult.opt1; /** - * The street of the front side of the Malaysia Dl owner. + * Defines second optional data.null or empty string if not available. */ - this.street = nativeResult.street; + this.opt2 = nativeResult.opt2; /** - * The valid From of the front side of the Malaysia Dl owner. + * Defines the primary indentifier. If there is more than one component, they are separated with space. */ - this.validFrom = nativeResult.validFrom != null ? new Date(nativeResult.validFrom) : null; + this.primaryId = nativeResult.primaryId; /** - * The valid Until of the front side of the Malaysia Dl owner. + * Defines the secondary identifier. If there is more than one component, they are separated with space. */ - this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; + this.secondaryId = nativeResult.secondaryId; /** - * The zipcode of the front side of the Malaysia Dl owner. + * Defines sex of the card holder. Sex is specified by use of the single initial, */ - this.zipcode = nativeResult.zipcode; + this.sex = nativeResult.sex; } -MalaysiaDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +JordanIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaDlFrontRecognizerResult = MalaysiaDlFrontRecognizerResult; +BlinkID.prototype.JordanIdBackRecognizerResult = JordanIdBackRecognizerResult; /** - * Recognizer which can scan front side of Malaysian DL cards. + * Recognizer for the back side of Jordan ID. + * */ -function MalaysiaDlFrontRecognizer() { - Recognizer.call(this, 'MalaysiaDlFrontRecognizer'); +function JordanIdBackRecognizer() { + Recognizer.call(this, 'JordanIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Malaysian DL owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if vehicle classes of Malaysian DL should be extracted. - * - * - */ - this.extractClass = true; - - /** - * Defines if name of Malaysian DL owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of Malaysian DL owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if date of issue of Malaysian DL should be extracted. - * - * - */ - this.extractValidFrom = true; - - /** - * Defines if date of expiry of Malaysian DL should be extracted. - * - * - */ - this.extractValidUntil = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - 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 - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - 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; - this.createResultFromNative = function (nativeResult) { return new MalaysiaDlFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new JordanIdBackRecognizerResult(nativeResult); } } -MalaysiaDlFrontRecognizer.prototype = new Recognizer('MalaysiaDlFrontRecognizer'); +JordanIdBackRecognizer.prototype = new Recognizer('JordanIdBackRecognizer'); -BlinkID.prototype.MalaysiaDlFrontRecognizer = MalaysiaDlFrontRecognizer; +BlinkID.prototype.JordanIdBackRecognizer = JordanIdBackRecognizer; /** - * Result object for MalaysiaIkadFrontRecognizer. + * Result object for JordanIdFrontRecognizer. */ -function MalaysiaIkadFrontRecognizerResult(nativeResult) { +function JordanIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Address of Malaysian iKad owner. - */ - this.address = nativeResult.address; - - /** - * The date of birth of Malaysian iKad owner. + * Date of birth of Jordan ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Date of expiry of Malaysian iKad card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Employer of Malaysian iKad owner. - */ - this.employer = nativeResult.employer; - - /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * Faculty address in which Malaysian iKad owner currently studies. - */ - this.facultyAddress = nativeResult.facultyAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Gender of Malaysian iKad owner. - */ - this.gender = nativeResult.gender; - - /** - * The name of Malaysian iKad owner. + * Name of Jordan ID owner. */ this.name = nativeResult.name; /** - * Nationality of Malaysian iKad owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The passport number of Malaysian iKad owners passport. + * The national number of Jordan ID card owner. */ - this.passportNumber = nativeResult.passportNumber; + this.nationalNumber = nativeResult.nationalNumber; /** - * Sector in which Malaysian iKad owner works. + * Sex of Jordan ID owner. */ - this.sector = nativeResult.sector; + this.sex = nativeResult.sex; } -MalaysiaIkadFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +JordanIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaIkadFrontRecognizerResult = MalaysiaIkadFrontRecognizerResult; +BlinkID.prototype.JordanIdFrontRecognizerResult = JordanIdFrontRecognizerResult; /** - * Recognizer which can scan front side of Malaysia iKad card. + * Recognizer for reading front side of Jordan ID. + * */ -function MalaysiaIkadFrontRecognizer() { - Recognizer.call(this, 'MalaysiaIkadFrontRecognizer'); +function JordanIdFrontRecognizer() { + Recognizer.call(this, 'JordanIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Malaysian iKad owner should be extracted. - * - * + * True if date of birth of Jordan owner is being extracted */ - this.extractAddress = true; + this.extractDateOfBirth = true; /** - * Defines if date of expiry of Malaysian iKad card should be extracted. - * - * + * True if name of Jordan ID owner is being extracted */ - this.extractDateOfExpiry = true; + this.extractName = true; /** - * Defines if employer of Malaysian iKad owner should be extracted. - * - * + * True if sex of Jordan owner is being extracted */ - this.extractEmployer = true; + this.extractSex = true; /** - * Defines if address of faculty, in which Malaysian iKad owner currently studies, should be extracted. - * - * + * Defines the DPI (Dots Per Inch) for full document image that should be returned. */ - this.extractFacultyAddress = true; + this.fullDocumentImageDpi = 250; /** - * Defines if gender of Malaysian iKad owner should be extracted. - * - * + * Defines whether face image will be available in result. */ - this.extractGender = true; + this.returnFaceImage = false; /** - * Defines if (full) name of Malaysian iKad owner should be extracted. - * - * + * Defines whether full document image will be available in */ - this.extractName = true; + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new JordanIdFrontRecognizerResult(nativeResult); } + +} + +JordanIdFrontRecognizer.prototype = new Recognizer('JordanIdFrontRecognizer'); + +BlinkID.prototype.JordanIdFrontRecognizer = JordanIdFrontRecognizer; + +/** + * Result object for KuwaitIdBackRecognizer. + */ +function KuwaitIdBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Defines if nationality of Malaysian iKad owner should be extracted. - * - * + * Image of the full document */ - this.extractNationality = true; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Defines if passport number of Malaysian iKad owners passport should be extracted. - * - * + * The data extracted from the machine readable zone. */ - this.extractPassportNumber = true; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * Defines if sector in which Malaysian iKad owner works should be extracted. - * - * + * The serial number of Kuwait ID. */ - this.extractSector = true; + this.serialNo = nativeResult.serialNo; + +} + +KuwaitIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.KuwaitIdBackRecognizerResult = KuwaitIdBackRecognizerResult; + +/** + * Recognizer which can scan back side of Kuwait national ID cards. + */ +function KuwaitIdBackRecognizer() { + Recognizer.call(this, 'KuwaitIdBackRecognizer'); /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines whether glare detector is enabled. */ - this.faceImageDpi = 250; + 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 - * - * + * Defines if serial number of Kuwait ID should be extracted. */ - this.fullDocumentImageDpi = 250; + this.extractSerialNo = true; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.fullDocumentImageDpi = 250; /** - * Sets whether face image from ID card should be extracted - * - * + * The extension factors for full document image. */ - this.returnFaceImage = false; + 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; - this.createResultFromNative = function (nativeResult) { return new MalaysiaIkadFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new KuwaitIdBackRecognizerResult(nativeResult); } } -MalaysiaIkadFrontRecognizer.prototype = new Recognizer('MalaysiaIkadFrontRecognizer'); +KuwaitIdBackRecognizer.prototype = new Recognizer('KuwaitIdBackRecognizer'); -BlinkID.prototype.MalaysiaIkadFrontRecognizer = MalaysiaIkadFrontRecognizer; +BlinkID.prototype.KuwaitIdBackRecognizer = KuwaitIdBackRecognizer; /** - * Result object for MalaysiaMyKadBackRecognizer. + * Result object for KuwaitIdFrontRecognizer. */ -function MalaysiaMyKadBackRecognizerResult(nativeResult) { +function KuwaitIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The Date Of Birth of the MyKad owner. + * The birth date of the Kuwait ID owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * The Extended NRIC of the MyKad owner. + * The civil ID number of the Kuwait ID owner. */ - this.extendedNric = nativeResult.extendedNric; + this.civilIdNumber = nativeResult.civilIdNumber; /** - * full document image if enabled with returnFullDocumentImage property. + * The expiry date of the Kuwait ID. + */ + this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; + + /** + * Face image from the document + */ + this.faceImage = nativeResult.faceImage; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The NRIC of the MyKad owner. + * The name of the Kuwait ID owner. */ - this.nric = nativeResult.nric; + this.name = nativeResult.name; /** - * The old NRIC of the MyKad owner. + * The nationality of the Kuwait ID owner. */ - this.oldNric = nativeResult.oldNric; + this.nationality = nativeResult.nationality; + + /** + * The sex of the Kuwait ID owner. + */ + this.sex = nativeResult.sex; } -MalaysiaMyKadBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +KuwaitIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaMyKadBackRecognizerResult = MalaysiaMyKadBackRecognizerResult; +BlinkID.prototype.KuwaitIdFrontRecognizerResult = KuwaitIdFrontRecognizerResult; /** - * Class for configuring Kad Back Recognizer. - * - * MyKadBack recognizer is used for scanning back side of MyKad. + * Recognizer which can scan front side of Kuwait national ID cards. */ -function MalaysiaMyKadBackRecognizer() { - Recognizer.call(this, 'MalaysiaMyKadBackRecognizer'); +function KuwaitIdFrontRecognizer() { + Recognizer.call(this, 'KuwaitIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if old NRIC should be extracted from back side of the MyKad - * - * + * Defines if date of birth of Kuwait ID owner should be extracted. */ - this.extractOldNric = true; + this.extractBirthDate = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if name of Kuwait ID owner should be extracted. + */ + this.extractName = true; + + /** + * Defines if nationality of Kuwait ID owner should be extracted. + */ + this.extractNationality = true; + + /** + * Defines if sex of Kuwait ID owner should be extracted. + */ + this.extractSex = true; + + /** + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * 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 face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadBackRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new KuwaitIdFrontRecognizerResult(nativeResult); } } -MalaysiaMyKadBackRecognizer.prototype = new Recognizer('MalaysiaMyKadBackRecognizer'); +KuwaitIdFrontRecognizer.prototype = new Recognizer('KuwaitIdFrontRecognizer'); -BlinkID.prototype.MalaysiaMyKadBackRecognizer = MalaysiaMyKadBackRecognizer; +BlinkID.prototype.KuwaitIdFrontRecognizer = KuwaitIdFrontRecognizer; /** - * Result object for MalaysiaMyKadFrontRecognizer. + * Result object for MalaysiaDlFrontRecognizer. */ -function MalaysiaMyKadFrontRecognizerResult(nativeResult) { +function MalaysiaDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The birth date of Malaysian MyKad owner. + * The city of Malaysia DL owner */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; + this.city = nativeResult.city; /** - * The city of Malaysian MyKad owner. + * The vehicle classes of Malaysia DL */ - this.city = nativeResult.city; + this.dlClass = nativeResult.dlClass; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The address of Malaysian MyKad owner. + * The address of Malaysia DL owner */ this.fullAddress = nativeResult.fullAddress; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The full name of Malaysian MyKad owner. + * The identity number of Malaysia DL owner */ - this.fullName = nativeResult.fullName; + this.identityNumber = nativeResult.identityNumber; /** - * The nric of Malaysian IDMyKad + * The name of Malaysia DL owner */ - this.nric = nativeResult.nric; + this.name = nativeResult.name; /** - * The state of Malaysian MyKad owner. + * The nationality of Malaysia DL owner + */ + this.nationality = nativeResult.nationality; + + /** + * The state of Malaysia DL owner */ this.ownerState = nativeResult.ownerState; /** - * The religion of Malaysian MyKad owner. + * The street of Malaysia DL owner */ - this.religion = nativeResult.religion; + this.street = nativeResult.street; /** - * The sex of Malaysian MyKad owner. + * The date of issue of Malaysia DL */ - this.sex = nativeResult.sex; + this.validFrom = nativeResult.validFrom != null ? new Date(nativeResult.validFrom) : null; /** - * The street of Malaysian MyKad owner. + * The date of expiry of Malaysia DL */ - this.street = nativeResult.street; + this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; /** - * The zipcode of Malaysian MyKad owner. + * The zipocde of Malaysia DL owner */ this.zipcode = nativeResult.zipcode; } -MalaysiaMyKadFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaMyKadFrontRecognizerResult = MalaysiaMyKadFrontRecognizerResult; +BlinkID.prototype.MalaysiaDlFrontRecognizerResult = MalaysiaDlFrontRecognizerResult; /** - * Recognizer which can scan front side of Malaysian MyKad cards. + * Recognizer which can scan front side of Malaysia DL cards. */ -function MalaysiaMyKadFrontRecognizer() { - Recognizer.call(this, 'MalaysiaMyKadFrontRecognizer'); +function MalaysiaDlFrontRecognizer() { + Recognizer.call(this, 'MalaysiaDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if full name and address of Malaysian MyKad owner should be extracted. - * - * + * Defines if address of Malaysia DL owner should be extracted */ - this.extractFullNameAndAddress = true; + this.extractAddress = true; /** - * Defines if religion of Malaysian MyKad owner should be extracted. - * - * + * Defines if vehicle classes of Malaysia DL should be extracted */ - this.extractReligion = true; + this.extractClass = true; /** - * Defines if sex of Malaysian MyKad owner should be extracted. - * - * + * Defines if name of Malaysia DL owner should be extracted */ - this.extractSex = true; + this.extractName = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if nationality of Malaysia DL owner should be extracted + */ + this.extractNationality = true; + + /** + * Defines if date of issue of Malaysia DL should be extracted + */ + this.extractValidFrom = true; + + /** + * Defines if date of expiry of Malaysia DL should be extracted + */ + this.extractValidUntil = true; + + /** + * 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; - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaDlFrontRecognizerResult(nativeResult); } } -MalaysiaMyKadFrontRecognizer.prototype = new Recognizer('MalaysiaMyKadFrontRecognizer'); +MalaysiaDlFrontRecognizer.prototype = new Recognizer('MalaysiaDlFrontRecognizer'); -BlinkID.prototype.MalaysiaMyKadFrontRecognizer = MalaysiaMyKadFrontRecognizer; +BlinkID.prototype.MalaysiaDlFrontRecognizer = MalaysiaDlFrontRecognizer; /** - * Result object for MalaysiaMyKasFrontRecognizer. + * Result object for MalaysiaIkadFrontRecognizer. */ -function MalaysiaMyKasFrontRecognizerResult(nativeResult) { +function MalaysiaIkadFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The birth date of Malaysian MyKAS owner. + * Address of Malaysian iKad owner. */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; + this.address = nativeResult.address; /** - * The city of Malaysian MyKAS owner. + * The date of birth of Malaysian iKad owner. */ - this.city = nativeResult.city; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Malaysian MyKAS. + * Date of expiry of Malaysian iKad card. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The address of Malaysian MyKAS owner. + * Employer of Malaysian iKad owner. */ - this.fullAddress = nativeResult.fullAddress; + this.employer = nativeResult.employer; /** - * full document image if enabled with returnFullDocumentImage property. + * Face image from the document */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.faceImage = nativeResult.faceImage; /** - * The full name of Malaysian MyKAS owner. + * Faculty address in which Malaysian iKad owner currently studies. */ - this.fullName = nativeResult.fullName; + this.facultyAddress = nativeResult.facultyAddress; /** - * The nric of Malaysian MyKAS. + * Image of the full document */ - this.nric = nativeResult.nric; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The state of Malaysian MyKAS owner. + * Gender of Malaysian iKad owner. */ - this.ownerState = nativeResult.ownerState; + this.gender = nativeResult.gender; /** - * The religion of Malaysian MyKAS owner. + * The name of Malaysian iKad owner. */ - this.religion = nativeResult.religion; + this.name = nativeResult.name; /** - * The sex of Malaysian MyKAS owner. + * Nationality of Malaysian iKad owner. */ - this.sex = nativeResult.sex; + this.nationality = nativeResult.nationality; /** - * The street of Malaysian MyKAS owner. + * The passport number of Malaysian iKad owners passport. */ - this.street = nativeResult.street; + this.passportNumber = nativeResult.passportNumber; /** - * The zipcode of Malaysian MyKAS owner. + * Sector in which Malaysian iKad owner works. */ - this.zipcode = nativeResult.zipcode; + this.sector = nativeResult.sector; } -MalaysiaMyKasFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaIkadFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaMyKasFrontRecognizerResult = MalaysiaMyKasFrontRecognizerResult; +BlinkID.prototype.MalaysiaIkadFrontRecognizerResult = MalaysiaIkadFrontRecognizerResult; /** - * Recognizer which can scan front side of Malaysian MyKAS cards. + * Recognizer which can scan front side of Malaysia iKad card. */ -function MalaysiaMyKasFrontRecognizer() { - Recognizer.call(this, 'MalaysiaMyKasFrontRecognizer'); +function MalaysiaIkadFrontRecognizer() { + Recognizer.call(this, 'MalaysiaIkadFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if full name and address of Malaysian MyKAS owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyKAS owner should be extracted. - * - * + * Defines if address of Malaysian iKad owner should be extracted. */ - this.extractReligion = true; + this.extractAddress = true; /** - * Defines if sex of Malaysian MyKAS owner should be extracted. - * - * + * Defines if date of expiry of Malaysian iKad card should be extracted. */ - this.extractSex = true; + this.extractDateOfExpiry = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if employer of Malaysian iKad owner should be extracted. */ - this.faceImageDpi = 250; + this.extractEmployer = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if address of faculty, in which Malaysian iKad owner currently studies, should be extracted. */ - this.fullDocumentImageDpi = 250; + this.extractFacultyAddress = true; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines if gender of Malaysian iKad owner should be extracted. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractGender = true; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines if (full) name of Malaysian iKad owner should be extracted. */ - this.returnFaceImage = false; + this.extractName = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines if nationality of Malaysian iKad owner should be extracted. */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKasFrontRecognizerResult(nativeResult); } - -} - -MalaysiaMyKasFrontRecognizer.prototype = new Recognizer('MalaysiaMyKasFrontRecognizer'); - -BlinkID.prototype.MalaysiaMyKasFrontRecognizer = MalaysiaMyKasFrontRecognizer; - -/** - * Result object for MalaysiaMyPrFrontRecognizer. - */ -function MalaysiaMyPrFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); + this.extractNationality = true; /** - * The birth date of Malaysian MyPR owner. + * Defines if passport number of Malaysian iKad owners passport should be extracted. */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; + this.extractPassportNumber = true; /** - * The city of Malaysian MyPR owner. + * Defines if sector in which Malaysian iKad owner works should be extracted. */ - this.city = nativeResult.city; + this.extractSector = true; /** - * The country code of Malaysian MyPR owner. + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.countryCode = nativeResult.countryCode; + this.faceImageDpi = 250; /** - * face image from the document if enabled with returnFaceImage property. + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.faceImage = nativeResult.faceImage; + this.fullDocumentImageDpi = 250; /** - * The address of Malaysian MyPR owner. + * The extension factors for full document image. */ - this.fullAddress = nativeResult.fullAddress; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * full document image if enabled with returnFullDocumentImage property. + * Defines whether face image will be available in result. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.returnFaceImage = false; /** - * The full name of Malaysian MyPR owner. + * Defines whether full document image will be available in */ - this.fullName = nativeResult.fullName; + this.returnFullDocumentImage = false; - /** - * The nric of Malaysian MyPR. - */ - this.nric = nativeResult.nric; + this.createResultFromNative = function (nativeResult) { return new MalaysiaIkadFrontRecognizerResult(nativeResult); } + +} + +MalaysiaIkadFrontRecognizer.prototype = new Recognizer('MalaysiaIkadFrontRecognizer'); + +BlinkID.prototype.MalaysiaIkadFrontRecognizer = MalaysiaIkadFrontRecognizer; + +/** + * Result object for MalaysiaMyKadBackRecognizer. + */ +function MalaysiaMyKadBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * The state of Malaysian MyPR owner. + * Date of birth of MyKad owner. */ - this.ownerState = nativeResult.ownerState; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The religion of Malaysian MyPR owner. + * Extended NRIC (National Registration Identity Card Number) of MyKad. */ - this.religion = nativeResult.religion; + this.extendedNric = nativeResult.extendedNric; /** - * The sex of Malaysian MyPR owner. + * Image of the full document */ - this.sex = nativeResult.sex; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The street of Malaysian MyPR owner. + * NRIC (National Registration Identity Card Number) of MyKad. */ - this.street = nativeResult.street; + this.nric = nativeResult.nric; /** - * The zipcode of Malaysian MyPR owner. + * Old NRIC (National Registration Identity Card Number) of MyKad. */ - this.zipcode = nativeResult.zipcode; + this.oldNric = nativeResult.oldNric; } -MalaysiaMyPrFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaMyKadBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaMyPrFrontRecognizerResult = MalaysiaMyPrFrontRecognizerResult; +BlinkID.prototype.MalaysiaMyKadBackRecognizerResult = MalaysiaMyKadBackRecognizerResult; /** - * Recognizer which can scan front side of Malaysian MyPR cards. + * Recognizer for reading back side of Malaysian MyKad. */ -function MalaysiaMyPrFrontRecognizer() { - Recognizer.call(this, 'MalaysiaMyPrFrontRecognizer'); +function MalaysiaMyKadBackRecognizer() { + Recognizer.call(this, 'MalaysiaMyKadBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if full name and address of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if sex of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if old NRIC (National Registration Identity Card Number) of MyKad */ - this.faceImageDpi = 250; + this.extractOldNric = 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 face image from ID card should be extracted - * - * - */ - 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; - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyPrFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadBackRecognizerResult(nativeResult); } } -MalaysiaMyPrFrontRecognizer.prototype = new Recognizer('MalaysiaMyPrFrontRecognizer'); +MalaysiaMyKadBackRecognizer.prototype = new Recognizer('MalaysiaMyKadBackRecognizer'); -BlinkID.prototype.MalaysiaMyPrFrontRecognizer = MalaysiaMyPrFrontRecognizer; +BlinkID.prototype.MalaysiaMyKadBackRecognizer = MalaysiaMyKadBackRecognizer; /** - * Result object for MalaysiaMyTenteraFrontRecognizer. + * Result object for MalaysiaMyKadFrontRecognizer. */ -function MalaysiaMyTenteraFrontRecognizerResult(nativeResult) { +function MalaysiaMyKadFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The army number of Malaysian MyTentera owner. - */ - this.armyNumber = nativeResult.armyNumber; - - /** - * The birth date of Malaysian MyTentera owner. + * The birth date of Malaysian MyKad owner. */ this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * The city of Malaysian MyTentera owner. + * The city of Malaysian MyKad owner. */ this.city = nativeResult.city; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The address of Malaysian MyTentera owner. + * The address of Malaysian MyKad owner. */ this.fullAddress = nativeResult.fullAddress; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The full name of Malaysian MyTentera owner. + * The full name of Malaysian MyKad owner. */ this.fullName = nativeResult.fullName; /** - * The nric of Malaysian MyTentera. + * The nric of Malaysian IDMyKad */ this.nric = nativeResult.nric; /** - * The state of Malaysian MyTentera owner. + * The state of Malaysian MyKad owner. */ this.ownerState = nativeResult.ownerState; /** - * The religion of Malaysian MyTentera owner. + * The religion of Malaysian MyKad owner. */ this.religion = nativeResult.religion; /** - * The sex of Malaysian MyTentera owner. + * The sex of Malaysian MyKad owner. */ this.sex = nativeResult.sex; /** - * The street of Malaysian MyTentera owner. + * The street of Malaysian MyKad owner. */ this.street = nativeResult.street; /** - * The zipcode of Malaysian MyTentera owner. + * The zipcode of Malaysian MyKad owner. */ this.zipcode = nativeResult.zipcode; } -MalaysiaMyTenteraFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaMyKadFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MalaysiaMyTenteraFrontRecognizerResult = MalaysiaMyTenteraFrontRecognizerResult; +BlinkID.prototype.MalaysiaMyKadFrontRecognizerResult = MalaysiaMyKadFrontRecognizerResult; /** - * Recognizer which can scan front side of Malaysian MyTentera cards. + * Recognizer which can scan front side of Malaysian MyKad cards. */ -function MalaysiaMyTenteraFrontRecognizer() { - Recognizer.call(this, 'MalaysiaMyTenteraFrontRecognizer'); +function MalaysiaMyKadFrontRecognizer() { + Recognizer.call(this, 'MalaysiaMyKadFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if full name and address of Malaysian MyTentera owner should be extracted. - * - * + * Defines if full name and address of Malaysian MyKad owner should be extracted. */ this.extractFullNameAndAddress = true; /** - * Defines if religion of Malaysian MyTentera owner should be extracted. - * - * + * Defines if religion of Malaysian MyKad owner should be extracted. */ this.extractReligion = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if sex of Malaysian MyKad owner should be extracted. + */ + this.extractSex = true; + + /** + * 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; - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyTenteraFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadFrontRecognizerResult(nativeResult); } } -MalaysiaMyTenteraFrontRecognizer.prototype = new Recognizer('MalaysiaMyTenteraFrontRecognizer'); +MalaysiaMyKadFrontRecognizer.prototype = new Recognizer('MalaysiaMyKadFrontRecognizer'); -BlinkID.prototype.MalaysiaMyTenteraFrontRecognizer = MalaysiaMyTenteraFrontRecognizer; +BlinkID.prototype.MalaysiaMyKadFrontRecognizer = MalaysiaMyKadFrontRecognizer; /** - * Result object for MexicoVoterIdFrontRecognizer. + * Result object for MalaysiaMyKasFrontRecognizer. */ -function MexicoVoterIdFrontRecognizerResult(nativeResult) { +function MalaysiaMyKasFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of Mexico Voter ID owner. + * The birth date of Malaysian MyKAS owner. */ - this.address = nativeResult.address; + this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * The CURP of Mexico Voter ID owner. + * The city of Malaysian MyKAS owner. */ - this.curp = nativeResult.curp; + this.city = nativeResult.city; /** - * The date of birth of Mexico Voter ID owner. + * The date of expiry of Malaysian MyKAS. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The elector key of Mexico Voter ID owner. + * Face image from the document */ - this.electorKey = nativeResult.electorKey; + this.faceImage = nativeResult.faceImage; /** - * face image from the document if enabled with returnFaceImage property. + * The address of Malaysian MyKAS owner. */ - this.faceImage = nativeResult.faceImage; + this.fullAddress = nativeResult.fullAddress; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The full name of Mexico Voter ID owner. + * The full name of Malaysian MyKAS owner. */ this.fullName = nativeResult.fullName; /** - * The sex of Mexico Voter ID owner. + * The nric of Malaysian MyKAS. + */ + this.nric = nativeResult.nric; + + /** + * The state of Malaysian MyKAS owner. + */ + this.ownerState = nativeResult.ownerState; + + /** + * The religion of Malaysian MyKAS owner. + */ + this.religion = nativeResult.religion; + + /** + * The sex of Malaysian MyKAS owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * The street of Malaysian MyKAS owner. */ - this.signatureImage = nativeResult.signatureImage; + this.street = nativeResult.street; + + /** + * The zipcode of Malaysian MyKAS owner. + */ + this.zipcode = nativeResult.zipcode; } -MexicoVoterIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaMyKasFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MexicoVoterIdFrontRecognizerResult = MexicoVoterIdFrontRecognizerResult; +BlinkID.prototype.MalaysiaMyKasFrontRecognizerResult = MalaysiaMyKasFrontRecognizerResult; /** - * Recognizer which can scan front side of Mexican voter id. + * Recognizer which can scan front side of Malaysian MyKAS cards. */ -function MexicoVoterIdFrontRecognizer() { - Recognizer.call(this, 'MexicoVoterIdFrontRecognizer'); +function MalaysiaMyKasFrontRecognizer() { + Recognizer.call(this, 'MalaysiaMyKasFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Mexico Voter ID owner should be extracted. - * - * + * Defines if full name and address of Malaysian MyKAS owner should be extracted. */ - this.extractAddress = true; + this.extractFullNameAndAddress = true; /** - * Defines if CURP of Mexico Voter ID owner should be extracted. - * - * + * Defines if religion of Malaysian MyKAS owner should be extracted. */ - this.extractCurp = true; + this.extractReligion = true; /** - * Defines if full name of Mexico Voter ID owner should be extracted. - * - * + * Defines if sex of Malaysian MyKAS owner should be extracted. */ - this.extractFullName = true; + this.extractSex = 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; - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new MexicoVoterIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKasFrontRecognizerResult(nativeResult); } } -MexicoVoterIdFrontRecognizer.prototype = new Recognizer('MexicoVoterIdFrontRecognizer'); +MalaysiaMyKasFrontRecognizer.prototype = new Recognizer('MalaysiaMyKasFrontRecognizer'); -BlinkID.prototype.MexicoVoterIdFrontRecognizer = MexicoVoterIdFrontRecognizer; +BlinkID.prototype.MalaysiaMyKasFrontRecognizer = MalaysiaMyKasFrontRecognizer; /** - * Result object for MoroccoIdBackRecognizer. + * Result object for MalaysiaMyPrFrontRecognizer. */ -function MoroccoIdBackRecognizerResult(nativeResult) { +function MalaysiaMyPrFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the Morocco ID owner. + * The birth date of Malaysian MyPR owner. */ - this.address = nativeResult.address; + this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * The civil status number of the Morocco ID owner. + * The city of Malaysian MyPR owner. */ - this.civilStatusNumber = nativeResult.civilStatusNumber; + this.city = nativeResult.city; /** - * The date of expiry of the Morocco ID. + * The country code of Malaysian MyPR owner. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.countryCode = nativeResult.countryCode; /** - * The document number of the Morocco ID. + * Face image from the document */ - this.documentNumber = nativeResult.documentNumber; + this.faceImage = nativeResult.faceImage; /** - * The father's name of the Morocco ID owner. + * The address of Malaysian MyPR owner. */ - this.fathersName = nativeResult.fathersName; + this.fullAddress = nativeResult.fullAddress; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The mother's name of the Morocco ID owner. + * The full name of Malaysian MyPR owner. */ - this.mothersName = nativeResult.mothersName; + this.fullName = nativeResult.fullName; + + /** + * The nric of Malaysian MyPR. + */ + this.nric = nativeResult.nric; + + /** + * The state of Malaysian MyPR owner. + */ + this.ownerState = nativeResult.ownerState; /** - * The sex of the Morocco ID owner. + * The religion of Malaysian MyPR owner. + */ + this.religion = nativeResult.religion; + + /** + * The sex of Malaysian MyPR owner. */ this.sex = nativeResult.sex; + /** + * The street of Malaysian MyPR owner. + */ + this.street = nativeResult.street; + + /** + * The zipcode of Malaysian MyPR owner. + */ + this.zipcode = nativeResult.zipcode; + } -MoroccoIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MalaysiaMyPrFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MoroccoIdBackRecognizerResult = MoroccoIdBackRecognizerResult; +BlinkID.prototype.MalaysiaMyPrFrontRecognizerResult = MalaysiaMyPrFrontRecognizerResult; /** - * Class for configuring Morocco ID Back Recognizer. - * - * Morocco ID Back recognizer is used for scanning Back side of the Morocco ID. + * Recognizer which can scan front side of Malaysian MyPR cards. */ -function MoroccoIdBackRecognizer() { - Recognizer.call(this, 'MoroccoIdBackRecognizer'); +function MalaysiaMyPrFrontRecognizer() { + Recognizer.call(this, 'MalaysiaMyPrFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's address should be extracted from Back side of the Morocco ID - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's civil status number should be extracted from Back side of the Morocco ID - * - * + * Defines if full name and address of Malaysian MyPR owner should be extracted. */ - this.extractCivilStatusNumber = true; + this.extractFullNameAndAddress = true; /** - * Defines if date of expiry should be extracted from Back side of the Morocco ID - * - * + * Defines if religion of Malaysian MyPR owner should be extracted. */ - this.extractDateOfExpiry = true; + this.extractReligion = true; /** - * Defines if father's name should be extracted from Back side of the Morocco ID - * - * + * Defines if sex of Malaysian MyPR owner should be extracted. */ - this.extractFathersName = true; + this.extractSex = true; /** - * Defines if mother's name should be extracted from Back side of the Morocco ID - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.extractMothersName = true; + this.faceImageDpi = 250; /** - * Defines if owner's sex should be extracted from Back side of the Morocco ID - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.extractSex = true; + this.fullDocumentImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The extension factors for full document image. */ - this.fullDocumentImageDpi = 250; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines whether face image will be available in result. */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + 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; - this.createResultFromNative = function (nativeResult) { return new MoroccoIdBackRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaMyPrFrontRecognizerResult(nativeResult); } } -MoroccoIdBackRecognizer.prototype = new Recognizer('MoroccoIdBackRecognizer'); +MalaysiaMyPrFrontRecognizer.prototype = new Recognizer('MalaysiaMyPrFrontRecognizer'); -BlinkID.prototype.MoroccoIdBackRecognizer = MoroccoIdBackRecognizer; +BlinkID.prototype.MalaysiaMyPrFrontRecognizer = MalaysiaMyPrFrontRecognizer; /** - * Result object for MoroccoIdFrontRecognizer. + * Result object for MalaysiaMyTenteraFrontRecognizer. */ -function MoroccoIdFrontRecognizerResult(nativeResult) { +function MalaysiaMyTenteraFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of the Morocco ID owner. + * The army number of Malaysian MyTentera owner. */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; + this.armyNumber = nativeResult.armyNumber; /** - * The date of expiry of the Morocco ID. + * The birth date of Malaysian MyTentera owner. */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * The document number of the Morocco ID. + * The city of Malaysian MyTentera owner. */ - this.documentNumber = nativeResult.documentNumber; + this.city = nativeResult.city; /** - * 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. + * The address of Malaysian MyTentera owner. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.fullAddress = nativeResult.fullAddress; /** - * The name of the Morocco ID owner. + * Image of the full document */ - this.name = nativeResult.name; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The place of birth of the Morocco ID owner. + * The full name of Malaysian MyTentera owner. */ - this.placeOfBirth = nativeResult.placeOfBirth; + this.fullName = nativeResult.fullName; /** - * The sex of the Morocco ID owner. + * The nric of Malaysian MyTentera. */ - this.sex = nativeResult.sex; + this.nric = nativeResult.nric; /** - * image of the signature if enabled with returnSignatureImage property. + * The state of Malaysian MyTentera owner. */ - this.signatureImage = nativeResult.signatureImage; + this.ownerState = nativeResult.ownerState; /** - * The surname of the Morocco ID owner. + * The religion of Malaysian MyTentera owner. */ - this.surname = nativeResult.surname; - -} - -MoroccoIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.MoroccoIdFrontRecognizerResult = MoroccoIdFrontRecognizerResult; - -/** - * Class for configuring Morocco ID Front Recognizer. - * - * Morocco ID Front recognizer is used for scanning front side of the Morocco ID. - */ -function MoroccoIdFrontRecognizer() { - Recognizer.call(this, 'MoroccoIdFrontRecognizer'); + this.religion = nativeResult.religion; /** - * Defines if glare detection should be turned on/off. - * - * + * The sex of Malaysian MyTentera owner. */ - this.detectGlare = true; + this.sex = nativeResult.sex; /** - * Defines if owner's date of birth should be extracted from front side of the Morocco ID - * - * + * The street of Malaysian MyTentera owner. */ - this.extractDateOfBirth = true; + this.street = nativeResult.street; /** - * Defines if date of expiry should be extracted from front side of the Morocco ID - * - * + * The zipcode of Malaysian MyTentera owner. */ - this.extractDateOfExpiry = true; + this.zipcode = nativeResult.zipcode; - /** - * Defines if owner's name should be extracted from front side of the Morocco ID - * - * - */ - this.extractName = true; +} + +MalaysiaMyTenteraFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.MalaysiaMyTenteraFrontRecognizerResult = MalaysiaMyTenteraFrontRecognizerResult; + +/** + * Recognizer which can scan front side of Malaysian MyTentera cards. + */ +function MalaysiaMyTenteraFrontRecognizer() { + Recognizer.call(this, 'MalaysiaMyTenteraFrontRecognizer'); /** - * Defines if owner's place of birth should be extracted from front side of the Morocco ID - * - * + * Defines whether glare detector is enabled. */ - this.extractPlaceOfBirth = true; + this.detectGlare = true; /** - * Defines if owner's sex should be extracted from front side of the Morocco ID - * - * + * Defines if full name and address of Malaysian MyTentera owner should be extracted. */ - this.extractSex = true; + this.extractFullNameAndAddress = true; /** - * Defines if owner's surname should be extracted from front side of the Morocco ID - * - * + * Defines if religion of Malaysian MyTentera owner should be extracted. */ - this.extractSurname = true; + this.extractReligion = 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; - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new MoroccoIdFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MalaysiaMyTenteraFrontRecognizerResult(nativeResult); } } -MoroccoIdFrontRecognizer.prototype = new Recognizer('MoroccoIdFrontRecognizer'); +MalaysiaMyTenteraFrontRecognizer.prototype = new Recognizer('MalaysiaMyTenteraFrontRecognizer'); -BlinkID.prototype.MoroccoIdFrontRecognizer = MoroccoIdFrontRecognizer; +BlinkID.prototype.MalaysiaMyTenteraFrontRecognizer = MalaysiaMyTenteraFrontRecognizer; /** - * Result object for MrtdCombinedRecognizer. + * Result object for MexicoVoterIdFrontRecognizer. */ -function MrtdCombinedRecognizerResult(nativeResult) { +function MexicoVoterIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * The address of Mexico Voter ID owner. */ - this.digitalSignature = nativeResult.digitalSignature; + this.address = nativeResult.address; /** - * Version of the digital signature. Available only if enabled with signResult property. + * The CURP of Mexico Voter ID owner. */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + this.curp = nativeResult.curp; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * The date of birth of Mexico Voter ID owner. */ - this.documentDataMatch = nativeResult.documentDataMatch; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * face image from the document if enabled with returnFaceImage property. + * The elector key of Mexico Voter ID owner. + */ + this.electorKey = nativeResult.electorKey; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Image of the full document */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * The full name of Mexico Voter ID owner. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + this.fullName = nativeResult.fullName; /** - * Returns the Data extracted from the machine readable zone. + * The sex of Mexico Voter ID owner. */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.sex = nativeResult.sex; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * Signature image from the document */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + this.signatureImage = nativeResult.signatureImage; } -MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MexicoVoterIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MrtdCombinedRecognizerResult = MrtdCombinedRecognizerResult; +BlinkID.prototype.MexicoVoterIdFrontRecognizerResult = MexicoVoterIdFrontRecognizerResult; /** - * MRTD Combined recognizer - * - * MRTD Combined recognizer is used for scanning both front and back side of generic IDs. + * Recognizer which can scan front side of Mexican voter id. */ -function MrtdCombinedRecognizer() { - Recognizer.call(this, 'MrtdCombinedRecognizer'); +function MexicoVoterIdFrontRecognizer() { + Recognizer.call(this, 'MexicoVoterIdFrontRecognizer'); /** - * Whether returning of unparsed results is allowed - * - * + * Defines whether glare detector is enabled. */ - this.allowUnparsedResults = false; + this.detectGlare = true; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Defines if address of Mexico Voter ID owner should be extracted. */ - this.allowUnverifiedResults = false; + this.extractAddress = true; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines if CURP of Mexico Voter ID owner should be extracted. */ - this.detectGlare = true; + this.extractCurp = true; /** - * Type of document this recognizer will scan. - * - * + * Defines if full name of Mexico Voter ID owner should be extracted. */ - this.detectorType = DocumentFaceDetectorType.TD1; + this.extractFullName = 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(); /** - * 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 - * - * + * Defines whether face image will be available in result. */ - this.numStableDetectionsThreshold = 6; + this.returnFaceImage = false; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether full document image will be available in */ - this.returnFaceImage = false; + this.returnFullDocumentImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ - this.returnFullDocumentImage = false; + this.returnSignatureImage = false; /** - * Whether or not recognition result should be signed. - * - * + * The DPI (Dots Per Inch) for signature image that should be returned. */ - this.signResult = false; + this.signatureImageDpi = 250; - this.createResultFromNative = function (nativeResult) { return new MrtdCombinedRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MexicoVoterIdFrontRecognizerResult(nativeResult); } } -MrtdCombinedRecognizer.prototype = new Recognizer('MrtdCombinedRecognizer'); +MexicoVoterIdFrontRecognizer.prototype = new Recognizer('MexicoVoterIdFrontRecognizer'); -BlinkID.prototype.MrtdCombinedRecognizer = MrtdCombinedRecognizer; +BlinkID.prototype.MexicoVoterIdFrontRecognizer = MexicoVoterIdFrontRecognizer; /** - * Result object for MrtdRecognizer. + * Result object for MoroccoIdBackRecognizer. */ -function MrtdRecognizerResult(nativeResult) { +function MoroccoIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * full document image if enabled with returnFullDocumentImage property. + * The address of the Moroccan ID owner + */ + this.address = nativeResult.address; + + /** + * The civil status number of the Moroccan ID owner + */ + this.civilStatusNumber = nativeResult.civilStatusNumber; + + /** + * The date of expiry of the Moroccan ID + */ + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; + + /** + * The document number of the Moroccan ID + */ + this.documentNumber = nativeResult.documentNumber; + + /** + * The father's name of the Moroccan ID owner + */ + this.fathersName = nativeResult.fathersName; + + /** + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * face image from the document if enabled with returnMrzImage property. + * The mother's name of the Moroccan ID owner */ - this.mrzImage = nativeResult.mrzImage; + this.mothersName = nativeResult.mothersName; /** - * Returns the Data extracted from the machine readable zone. + * The sex of the Moroccan ID owner */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + this.sex = nativeResult.sex; } -MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MoroccoIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.MrtdRecognizerResult = MrtdRecognizerResult; +BlinkID.prototype.MoroccoIdBackRecognizerResult = MoroccoIdBackRecognizerResult; /** - * Recognizer that can recognizer Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) + * Recognizer which can scan back side of Moroccan national ID cards. */ -function MrtdRecognizer() { - Recognizer.call(this, 'MrtdRecognizer'); +function MoroccoIdBackRecognizer() { + Recognizer.call(this, 'MoroccoIdBackRecognizer'); /** - * Whether returning of unparsed results is allowed - * - * + * Defines whether glare detector is enabled. */ - this.allowUnparsedResults = false; + this.detectGlare = true; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Defines if address of the Moroccan ID owner should be extracted */ - this.allowUnverifiedResults = false; + this.extractAddress = true; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines if civil status number of the Moroccan ID owner should be extracted */ - this.detectGlare = true; + this.extractCivilStatusNumber = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if date of expiry of the Moroccan ID should be extracted */ - this.fullDocumentImageDpi = 250; + this.extractDateOfExpiry = true; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Defines if father's name of the Moroccan ID owner should be extracted */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.extractFathersName = true; /** - * Property for setting DPI for mrz images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines if mother's name of the Moroccan ID owner should be extracted */ - this.mrzImageDpi = 250; + this.extractMothersName = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines if sex of the Moroccan ID owner should be extracted */ - this.returnFullDocumentImage = false; + this.extractSex = true; /** - * Sets whether MRZ image from ID card should be extracted - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.returnMrzImage = false; + this.fullDocumentImageDpi = 250; - this.createResultFromNative = function (nativeResult) { return new MrtdRecognizerResult(nativeResult); } + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Defines whether full document image will be available in + */ + this.returnFullDocumentImage = false; + + this.createResultFromNative = function (nativeResult) { return new MoroccoIdBackRecognizerResult(nativeResult); } } -MrtdRecognizer.prototype = new Recognizer('MrtdRecognizer'); +MoroccoIdBackRecognizer.prototype = new Recognizer('MoroccoIdBackRecognizer'); -BlinkID.prototype.MrtdRecognizer = MrtdRecognizer; +BlinkID.prototype.MoroccoIdBackRecognizer = MoroccoIdBackRecognizer; /** - * Result object for NewZealandDlFrontRecognizer. + * Result object for MoroccoIdFrontRecognizer. */ -function NewZealandDlFrontRecognizerResult(nativeResult) { +function MoroccoIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The last name of the New Zealand Driver License owner. - */ - this.address = nativeResult.address; - - /** - * The card version of the New Zealand Driver License. - */ - this.cardVersion = nativeResult.cardVersion; - - /** - * The last name of the New Zealand Driver License owner. + * The date of birth of the Moroccan ID owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The last name of the New Zealand Driver License owner. + * The date of expiry of the Moroccan ID */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The last name of the New Zealand Driver License owner. + * The document number of the Moroccan ID */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + this.documentNumber = nativeResult.documentNumber; /** - * The last name of the New Zealand Driver License owner. + * Face image from the document */ - this.donorIndicator = nativeResult.donorIndicator; + this.faceImage = nativeResult.faceImage; /** - * face image from the document if enabled with returnFaceImage property. + * Image of the full document */ - this.faceImage = nativeResult.faceImage; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The first name of the New Zealand Driver License owner. + * The name of the Moroccan ID owner */ - this.firstNames = nativeResult.firstNames; + this.name = nativeResult.name; /** - * full document image if enabled with returnFullDocumentImage property. + * The place of birth of the Moroccan ID owner */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.placeOfBirth = nativeResult.placeOfBirth; /** - * The license number of the New Zealand Driver License. + * The sex of the Moroccan ID owner */ - this.licenseNumber = nativeResult.licenseNumber; + this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The last name of the New Zealand Driver License owner. + * The surname of the Moroccan ID owner */ this.surname = nativeResult.surname; } -NewZealandDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MoroccoIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.NewZealandDlFrontRecognizerResult = NewZealandDlFrontRecognizerResult; +BlinkID.prototype.MoroccoIdFrontRecognizerResult = MoroccoIdFrontRecognizerResult; /** - * Class for configuring New Zealand DL Front Recognizer. - * - * New Zealand DL Front recognizer is used for scanning front side of New Zealand DL. + * Recognizer which can scan front side of Moroccan national ID cards. */ -function NewZealandDlFrontRecognizer() { - Recognizer.call(this, 'NewZealandDlFrontRecognizer'); +function MoroccoIdFrontRecognizer() { + Recognizer.call(this, 'MoroccoIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's address should be extracted from New Zealand Driver License - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's date of birth should be extracted from New Zealand Driver License - * - * + * Defines if date of birth of the Moroccan ID owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if card's expiry date should be extracted from New Zealand Driver License - * - * + * Defines if date of expiry of the Moroccan ID should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if card's issue date should be extracted from New Zealand Driver License - * - * + * Defines if name of the Moroccan ID owner should be extracted */ - this.extractDateOfIssue = true; + this.extractName = true; /** - * Defines if owner's donor indicator should be extracted from New Zealand Driver License - * - * + * Defines if place of birth of the Moroccan ID owner should be extracted */ - this.extractDonorIndicator = true; + this.extractPlaceOfBirth = true; /** - * Defines if owner's first name should be extracted from New Zealand Driver License - * - * + * Defines if sex of the Moroccan ID owner should be extracted */ - this.extractFirstNames = true; + this.extractSex = true; /** - * Defines if owner's last name should be extracted from New Zealand Driver License - * - * + * Defines if surname of the Moroccan ID owner should be extracted */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; - this.createResultFromNative = function (nativeResult) { return new NewZealandDlFrontRecognizerResult(nativeResult); } + this.createResultFromNative = function (nativeResult) { return new MoroccoIdFrontRecognizerResult(nativeResult); } } -NewZealandDlFrontRecognizer.prototype = new Recognizer('NewZealandDlFrontRecognizer'); +MoroccoIdFrontRecognizer.prototype = new Recognizer('MoroccoIdFrontRecognizer'); -BlinkID.prototype.NewZealandDlFrontRecognizer = NewZealandDlFrontRecognizer; +BlinkID.prototype.MoroccoIdFrontRecognizer = MoroccoIdFrontRecognizer; /** - * Result object for PaymentCardBackRecognizer. + * Result object for MrtdCombinedRecognizer. */ -function PaymentCardBackRecognizerResult(nativeResult) { +function MrtdCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Payment card's security code/value. + * Defines digital signature of recognition results. */ - this.cvv = nativeResult.cvv; + this.digitalSignature = nativeResult.digitalSignature; /** - * full document image if enabled with returnFullDocumentImage property. + * Defines digital signature version. */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Payment card's inventory number. + * Defines {true} if data from scanned parts/sides of the document match, */ - this.inventoryNumber = nativeResult.inventoryNumber; + this.documentDataMatch = nativeResult.documentDataMatch; + + /** + * Face image from the document + */ + this.faceImage = nativeResult.faceImage; + + /** + * Back side image of the document + */ + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + + /** + * Front side image of the document + */ + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + + /** + * 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, + */ + this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; } -PaymentCardBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MrtdCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.PaymentCardBackRecognizerResult = PaymentCardBackRecognizerResult; +BlinkID.prototype.MrtdCombinedRecognizerResult = MrtdCombinedRecognizerResult; /** - * Recognizer used for scanning the back side of credit/debit cards. + * Recognizer for combined reading of face from front side of documents and MRZ from back side of + * * Machine Readable Travel Document. */ -function PaymentCardBackRecognizer() { - Recognizer.call(this, 'PaymentCardBackRecognizer'); +function MrtdCombinedRecognizer() { + Recognizer.call(this, 'MrtdCombinedRecognizer'); /** - * Should anonymize the CVV area (redact image pixels) on the document image result - * - * + * Whether special characters are allowed. */ - this.anonymizeCvv = false; + this.allowSpecialCharacters = false; /** - * Defines if glare detection should be turned on/off. - * - * + * Whether returning of unparsed results is allowed. */ - this.detectGlare = true; + this.allowUnparsedResults = false; /** - * Should extract the card's inventory number - * - * + * Whether returning of unverified results is allowed. */ - this.extractInventoryNumber = true; + this.allowUnverifiedResults = false; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Currently used detector type. + */ + this.detectorType = DocumentFaceDetectorType.TD1; + + /** + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * 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. - * - * + * Minimum number of stable detections required for detection to be successful. + */ + this.numStableDetectionsThreshold = 6; + + /** + * Defines whether face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new PaymentCardBackRecognizerResult(nativeResult); } + /** + * Defines whether or not recognition result should be signed. + */ + this.signResult = false; + + this.createResultFromNative = function (nativeResult) { return new MrtdCombinedRecognizerResult(nativeResult); } } -PaymentCardBackRecognizer.prototype = new Recognizer('PaymentCardBackRecognizer'); +MrtdCombinedRecognizer.prototype = new Recognizer('MrtdCombinedRecognizer'); -BlinkID.prototype.PaymentCardBackRecognizer = PaymentCardBackRecognizer; +BlinkID.prototype.MrtdCombinedRecognizer = MrtdCombinedRecognizer; /** - * Result object for PaymentCardCombinedRecognizer. + * Result object for MrtdRecognizer. */ -function PaymentCardCombinedRecognizerResult(nativeResult) { +function MrtdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The payment card number. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * Payment card's security code/value. + * Image of the full document */ - this.cvv = nativeResult.cvv; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * The Data extracted from the machine readable zone. */ - this.digitalSignature = nativeResult.digitalSignature; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; +} + +MrtdRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); + +BlinkID.prototype.MrtdRecognizerResult = MrtdRecognizerResult; + +/** + * Recognizer that can recognize Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) + */ +function MrtdRecognizer() { + Recognizer.call(this, 'MrtdRecognizer'); /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Whether special characters are allowed. */ - this.documentDataMatch = nativeResult.documentDataMatch; + this.allowSpecialCharacters = false; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Whether returning of unparsed results is allowed. */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + this.allowUnparsedResults = false; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * Whether returning of unverified results is allowed. */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; + this.allowUnverifiedResults = false; /** - * Payment card's inventory number. + * Defines whether glare detector is enabled. */ - this.inventoryNumber = nativeResult.inventoryNumber; + this.detectGlare = true; /** - * Information about the payment card owner (name, company, etc.). + * The DPI (Dots Per Inch) for full document image that should be returned. */ - this.owner = nativeResult.owner; + this.fullDocumentImageDpi = 250; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * The extension factors for full document image. */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * The payment card's last month of validity. + * Defines whether full document image will be available in */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; + this.returnFullDocumentImage = false; + this.createResultFromNative = function (nativeResult) { return new MrtdRecognizerResult(nativeResult); } + } -PaymentCardCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); +MrtdRecognizer.prototype = new Recognizer('MrtdRecognizer'); -BlinkID.prototype.PaymentCardCombinedRecognizerResult = PaymentCardCombinedRecognizerResult; +BlinkID.prototype.MrtdRecognizer = MrtdRecognizer; /** - * Recognizer used for scanning the front and back side of credit/debit cards. + * Result object for NewZealandDlFrontRecognizer. */ -function PaymentCardCombinedRecognizer() { - Recognizer.call(this, 'PaymentCardCombinedRecognizer'); +function NewZealandDlFrontRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * + * The address of the New Zealand DL owner */ - this.anonymizeCardNumber = false; + this.address = nativeResult.address; /** - * Should anonymize the CVV area (redact image pixels) on the document image result - * - * + * The card version of the New Zealand DL */ - this.anonymizeCvv = false; + this.cardVersion = nativeResult.cardVersion; /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * + * The date of birth of the New Zealand DL owner */ - this.anonymizeOwner = false; + this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Defines if glare detection should be turned on/off. - * - * + * The date of expiry of the New Zealand DL */ - this.detectGlare = true; + this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Should extract the card's inventory number - * - * + * The date of issue of the New Zealand DL */ - this.extractInventoryNumber = true; + this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * Should extract the card owner information - * - * + * Donor indicator of the New Zealand DL owner. It's true if "DONOR" is printed on document, otherwise it's false */ - this.extractOwner = false; + this.donorIndicator = nativeResult.donorIndicator; /** - * Should extract the payment card's month of expiry - * - * + * Face image from the document */ - this.extractValidThru = true; + this.faceImage = nativeResult.faceImage; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The first names of the New Zealand DL owner */ - this.fullDocumentImageDpi = 250; + this.firstNames = nativeResult.firstNames; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * Image of the full document */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Sets whether full document image of ID card should be extracted. - * - * + * The license number of the New Zealand DL */ - this.returnFullDocumentImage = false; + this.licenseNumber = nativeResult.licenseNumber; /** - * Whether or not recognition result should be signed. - * - * + * Signature image from the document */ - this.signResult = false; + this.signatureImage = nativeResult.signatureImage; + + /** + * The surname of the New Zealand DL owner + */ + this.surname = nativeResult.surname; - this.createResultFromNative = function (nativeResult) { return new PaymentCardCombinedRecognizerResult(nativeResult); } - } -PaymentCardCombinedRecognizer.prototype = new Recognizer('PaymentCardCombinedRecognizer'); +NewZealandDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); -BlinkID.prototype.PaymentCardCombinedRecognizer = PaymentCardCombinedRecognizer; +BlinkID.prototype.NewZealandDlFrontRecognizerResult = NewZealandDlFrontRecognizerResult; /** - * Result object for PaymentCardFrontRecognizer. + * Recognizer which can scan front side of New Zealand DL cards. */ -function PaymentCardFrontRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); +function NewZealandDlFrontRecognizer() { + Recognizer.call(this, 'NewZealandDlFrontRecognizer'); /** - * The payment card number. + * Defines whether glare detector is enabled. */ - this.cardNumber = nativeResult.cardNumber; + this.detectGlare = true; /** - * full document image if enabled with returnFullDocumentImage property. + * Defines if address of New Zealand DL owner should be extracted */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.extractAddress = true; /** - * Information about the payment card owner (name, company, etc.). + * Defines if date of birth of New Zealand DL owner should be extracted */ - this.owner = nativeResult.owner; + this.extractDateOfBirth = true; /** - * The payment card's last month of validity. + * Defines if date of expiry of New Zealand DL should be extracted */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; - -} - -PaymentCardFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty); - -BlinkID.prototype.PaymentCardFrontRecognizerResult = PaymentCardFrontRecognizerResult; - -/** - * Recognizer used for scanning the front side of credit/debit cards. - */ -function PaymentCardFrontRecognizer() { - Recognizer.call(this, 'PaymentCardFrontRecognizer'); + this.extractDateOfExpiry = true; /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * + * Defines if date of issue of New Zealand DL should be extracted */ - this.anonymizeCardNumber = false; + this.extractDateOfIssue = true; /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * + * Defines if donor indicator of New Zealand DL owner should be extracted */ - this.anonymizeOwner = false; + this.extractDonorIndicator = true; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines if first names of New Zealand DL owner should be extracted */ - this.detectGlare = true; + this.extractFirstNames = true; /** - * Should extract the card owner information - * - * + * Defines if surname of New Zealand DL owner should be extracted */ - this.extractOwner = false; + this.extractSurname = true; /** - * Should extract the payment card's month of expiry - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ - this.extractValidThru = true; + 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 full document image of ID card should be extracted. - * - * + * Defines whether face image will be available in result. + */ + this.returnFaceImage = false; + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - this.createResultFromNative = function (nativeResult) { return new PaymentCardFrontRecognizerResult(nativeResult); } + /** + * Defines whether signature image will be available in result. + */ + this.returnSignatureImage = false; + + /** + * The DPI (Dots Per Inch) for signature image that should be returned. + */ + this.signatureImageDpi = 250; + + this.createResultFromNative = function (nativeResult) { return new NewZealandDlFrontRecognizerResult(nativeResult); } } -PaymentCardFrontRecognizer.prototype = new Recognizer('PaymentCardFrontRecognizer'); +NewZealandDlFrontRecognizer.prototype = new Recognizer('NewZealandDlFrontRecognizer'); -BlinkID.prototype.PaymentCardFrontRecognizer = PaymentCardFrontRecognizer; +BlinkID.prototype.NewZealandDlFrontRecognizer = NewZealandDlFrontRecognizer; /** * Result object for Pdf417Recognizer. @@ -9975,25 +8350,22 @@ function Pdf417RecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Type of the barcode scanned - * - * @return Type of the barcode + * The format of the scanned barcode. */ this.barcodeType = nativeResult.barcodeType; /** - * Byte array with result of the scan + * The raw bytes contained inside barcode. */ this.rawData = nativeResult.rawData; /** - * 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; @@ -10010,31 +8382,17 @@ function Pdf417Recognizer() { Recognizer.call(this, 'Pdf417Recognizer'); /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * + * Allow scanning PDF417 barcodes which don't have quiet zone */ this.nullQuietZoneAllowed = false; /** - * Set this to true to allow scanning barcodes with inverted intensities - * (i.e. white barcodes on black background) - * - * falseTE: this options doubles the frame processing time - * - * + * Enables scanning of barcodes with inverse intensity values (e.g. white barcode on black background) */ this.scanInverse = false; /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * + * Enable decoding of non-standard PDF417 barcodes, but without */ this.scanUncertain = true; @@ -10053,71 +8411,67 @@ function PolandCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Polish ID owner + * The date of birth of Polish ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The document date of expiry of the Polish ID + * The document date of expiry of the Polish ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * The document number on Polish ID. + * The document number of the Polish ID. */ this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The family name of Polish ID owner. + * The family name of the Polish ID owner. */ this.familyName = nativeResult.familyName; /** - * 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; /** - * The first name of the Polish ID owner. + * The given names of the Polish ID owner. */ this.givenNames = nativeResult.givenNames; /** - * The issuer of Polish ID. + * The issuer of the Polish ID. */ this.issuer = nativeResult.issuer; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * True if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; @@ -10127,28 +8481,27 @@ function PolandCombinedRecognizerResult(nativeResult) { this.nationality = nativeResult.nationality; /** - * The parents name of Polish ID owner. + * The parents' given names of the Polish ID owner. */ this.parentsGivenNames = nativeResult.parentsGivenNames; /** - * The personal number of Polish ID. + * Personal number of the Polish ID owner. */ this.personalNumber = nativeResult.personalNumber; /** - * 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; /** - * The sex of the Polish ID owner. + * Sex of the Polish ID owner. */ this.sex = nativeResult.sex; /** - * The last name of the Polish ID owner. + * The surname of the Polish ID owner. */ this.surname = nativeResult.surname; @@ -10159,199 +8512,85 @@ PolandCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResult BlinkID.prototype.PolandCombinedRecognizerResult = PolandCombinedRecognizerResult; /** - * Polish ID Combined Recognizer. + * Recognizer for combined reading of both front and back side of Polish ID. * - * Polish ID Combined recognizer is used for scanning both front and back side of Polish ID. */ function PolandCombinedRecognizer() { Recognizer.call(this, 'PolandCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * True if date of birth is being extracted from ID */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * True if family name is being extracted from ID */ this.extractFamilyName = true; /** - * Defines if date of birth of Polish ID owner should be extracted - * - * + * True if given names is being extracted from ID */ this.extractGivenNames = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * True if parents' given names is being extracted from ID */ this.extractParentsGivenNames = true; /** - * Defines if sex of Polish ID owner should be extracted - * - * + * True if sex is being extracted from ID */ this.extractSex = true; /** - * Defines if citizenship of Polish ID owner should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new PolandCombinedRecognizerResult(nativeResult); } - -} - -PolandCombinedRecognizer.prototype = new Recognizer('PolandCombinedRecognizer'); - -BlinkID.prototype.PolandCombinedRecognizer = PolandCombinedRecognizer; - -/** - * Result object for PolandIdBackRecognizer. - */ -function PolandIdBackRecognizerResult(nativeResult) { - RecognizerResult.call(this, nativeResult.resultState); - - /** - * Holder's date of birth. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * Date of expiry of the document. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document code. Document code contains two characters. For MRTD the first character - * shall be A, C or I. The second character shall be discretion of the issuing State or organization - * except that V shall not be used, and C shall not be used after A except in the crew member - * certificate. On machine-readable passports (MRP) first character shall be P to designate an MRP. - * One additional letter may be used, at the discretion of the issuing State or organization, - * to designate a particular MRP. If the second character position is not used for this purpose, it - * shall be filled by the filter character <. - */ - this.documentCode = nativeResult.documentCode; - - /** - * Unique number of the document. Document number contains up to 9 characters. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * Three-letter code which indicate the issuing State. - * Three-letter codes are based on Alpha-3 codes for entities specified in - * ISO 3166-1, with extensions for certain States. - */ - this.issuer = nativeResult.issuer; - - /** - * Boolean value which denotes that MRTD result is successfully parsed. When the result is parsed, all - * properties below are present. - * - * If in the PPMrtdRecognizerSettings you specified allowUnparsedResults = true, then it can happen that - * MRTDRecognizerResult is not parsed. When this happens, this property will be equal to true. - * - * In that case, you can use rawOcrResult property to obtain the raw result of the OCR process, so you can - * implement MRTD parsing in your application. - * - * @return true if MRTD Recognizer result was successfully parsed and all the fields are extracted. false otherwise. - */ - this.mrzParsed = nativeResult.mrzParsed; - - /** - * The entire Machine Readable Zone text from ID. This text is usually used for parsing - * other elements. - */ - this.mrzText = nativeResult.mrzText; - - /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * Nationality of the holder represented by a three-letter code. Three-letter codes are based - * on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States. + * True if surname is being extracted from ID */ - this.nationality = nativeResult.nationality; + this.extractSurname = true; /** - * First optional data. Returns nil or empty string if not available. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines whether face image will be available in result. */ - this.opt1 = nativeResult.opt1; + this.returnFaceImage = false; /** - * Second optional data. Returns nil or empty string if not available. - * Element does not exist on Passports and Visas. To see which document was scanned use documentType property. + * Defines whether full document image will be available in */ - this.opt2 = nativeResult.opt2; + this.returnFullDocumentImage = false; /** - * Returns the primary indentifier. If there is more than one component, they are separated with space. - * - * @return primary id of a card holder. + * Defines whether or not recognition result should be signed. */ - this.primaryId = nativeResult.primaryId; + this.signResult = false; + + this.createResultFromNative = function (nativeResult) { return new PolandCombinedRecognizerResult(nativeResult); } + +} + +PolandCombinedRecognizer.prototype = new Recognizer('PolandCombinedRecognizer'); + +BlinkID.prototype.PolandCombinedRecognizer = PolandCombinedRecognizer; + +/** + * Result object for PolandIdBackRecognizer. + */ +function PolandIdBackRecognizerResult(nativeResult) { + RecognizerResult.call(this, nativeResult.resultState); /** - * Returns the secondary identifier. If there is more than one component, they are separated with space. - * - * @return secondary id of a card holder + * Image of the full document */ - this.secondaryId = nativeResult.secondaryId; + this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Sex of the card holder. Sex is specified by use of the single initial, capital - * letter F for female, M for male or < for unspecified. + * The data extracted from the machine readable zone. */ - this.sex = nativeResult.sex; + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; } @@ -10360,24 +8599,28 @@ PolandIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.PolandIdBackRecognizerResult = PolandIdBackRecognizerResult; /** - * Class for configuring Polish ID Back Recognizer. - * - * Polish ID Back recognizer is used for scanning back side of Polish ID. + * Recognizer which can scan back side of Poland ID cards. */ function PolandIdBackRecognizer() { Recognizer.call(this, 'PolandIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. + */ + this.fullDocumentImageDpi = 250; + + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -10396,42 +8639,42 @@ function PolandIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Polish ID owner + * The date of birth of the Poland ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The family name of Polish ID owner. + * The family name of the Poland ID owner. */ this.familyName = nativeResult.familyName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The first name of the Polish ID owner. + * The given names of the Poland ID owner. */ this.givenNames = nativeResult.givenNames; /** - * The parents name of Polish ID owner. + * The parents given names of the Poland ID owner. */ this.parentsGivenNames = nativeResult.parentsGivenNames; /** - * The sex of the Polish ID owner. + * The sex of the Poland ID owner. */ this.sex = nativeResult.sex; /** - * The last name of the Polish ID owner. + * The surname of the Poland ID owner. */ this.surname = nativeResult.surname; @@ -10442,73 +8685,68 @@ PolandIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultS BlinkID.prototype.PolandIdFrontRecognizerResult = PolandIdFrontRecognizerResult; /** - * Class for configuring Polish ID Front Recognizer. - * - * Polish ID Front recognizer is used for scanning front side of Polish ID. + * Recognizer which can scan front side of Poland ID cards. */ function PolandIdFrontRecognizer() { Recognizer.call(this, 'PolandIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * Defines if date of birth of Poland ID owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * Defines if family name of Poland ID owner should be extracted. */ - this.extractFamilyName = true; + this.extractFamilyName = false; /** - * Defines if date of birth of Polish ID owner should be extracted - * - * + * Defines if given names of Poland ID owner should be extracted. */ this.extractGivenNames = true; /** - * Defines if date of expiry should be extracted from Polish ID - * - * + * Defines if parents given names of Poland ID owner should be extracted. */ - this.extractParentsGivenNames = true; + this.extractParentsGivenNames = false; /** - * Defines if sex of Polish ID owner should be extracted - * - * + * Defines if sex of Poland ID owner should be extracted. */ this.extractSex = true; /** - * Defines if citizenship of Polish ID owner should be extracted - * - * + * Defines if surname of Poland ID owner should be extracted. */ this.extractSurname = true; /** - * Sets whether face image from ID card should be extracted - * - * + * The DPI (Dots Per Inch) for face image that should be returned. + */ + this.faceImageDpi = 250; + + /** + * The DPI (Dots Per Inch) for full document image that should be returned. + */ + this.fullDocumentImageDpi = 250; + + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * 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; @@ -10527,175 +8765,147 @@ function RomaniaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Address + * Address of the Romanian ID owner. */ this.address = nativeResult.address; /** - * Card number + * The card number of Romanian ID. */ this.cardNumber = nativeResult.cardNumber; /** - * CNP + * The CNP of Romanian ID owner. */ this.cnp = nativeResult.cnp; /** - * Holder's date of birth. + * Defines holder's date of birth if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Date of expiry of the document. + * Defines date of expiry if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The document code. Document code contains two characters. For MRTD the first character - * shall be A, C or I. The second character shall be discretion of the issuing State or organization - * except that V shall not be used, and C shall not be used after A except in the crew member - * certificate. On machine-readable passports (MRP) first character shall be P to designate an MRP. - * One additional letter may be used, at the discretion of the issuing State or organization, - * to designate a particular MRP. If the second character position is not used for this purpose, it - * shall be filled by the filter character <. + * Defines document code. Document code contains two characters. For MRTD the first character shall */ this.documentCode = nativeResult.documentCode; /** - * Unique number of the document. Document number contains up to 9 characters. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines document number. Document number contains up to 9 characters. */ this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * First name + * The first name of the Romanian ID owner. */ this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * ID series + * The identity card series of Romanian ID. */ this.idSeries = nativeResult.idSeries; /** - * Issued by + * Issuing authority the Romanian ID. */ this.issuedBy = nativeResult.issuedBy; /** - * Three-letter code which indicate the issuing State. - * Three-letter codes are based on Alpha-3 codes for entities specified in - * ISO 3166-1, with extensions for certain States. + * Defines three-letter or two-letter code which indicate the issuing State. Three-letter codes are based */ this.issuer = nativeResult.issuer; /** - * Last name + * The last name of the Romanian ID owner. */ this.lastName = nativeResult.lastName; /** - * Boolean value which denotes that MRTD result is successfully parsed. When the result is parsed, all - * properties below are present. - * - * If in the PPMrtdRecognizerSettings you specified allowUnparsedResults = true, then it can happen that - * MRTDRecognizerResult is not parsed. When this happens, this property will be equal to true. - * - * In that case, you can use rawOcrResult property to obtain the raw result of the OCR process, so you can - * implement MRTD parsing in your application. - * - * @return true if MRTD Recognizer result was successfully parsed and all the fields are extracted. false otherwise. + * Defines true if Machine Readable Zone has been parsed, false otherwise. */ this.mrzParsed = nativeResult.mrzParsed; /** - * The entire Machine Readable Zone text from ID. This text is usually used for parsing - * other elements. + * Defines the entire Machine Readable Zone text from ID. This text is usually used for parsing */ this.mrzText = nativeResult.mrzText; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * Defines true if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * Nationality of the holder represented by a three-letter code. Three-letter codes are based - * on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States. + * Defines nationality of the holder represented by a three-letter or two-letter code. Three-letter */ this.nationality = nativeResult.nationality; /** - * Nationality - missing if parent names exists + * Nationality of the Romanian ID owner which is extracted from the non MRZ field. */ this.nonMRZNationality = nativeResult.nonMRZNationality; /** - * Sex + * Sex of the Romanian ID owner which is extracted from the non MRZ field. */ this.nonMRZSex = nativeResult.nonMRZSex; /** - * First optional data. Returns nil or empty string if not available. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines first optional data.null or empty string if not available. */ this.opt1 = nativeResult.opt1; /** - * Second optional data. Returns nil or empty string if not available. - * Element does not exist on Passports and Visas. To see which document was scanned use documentType property. + * Defines second optional data.null or empty string if not available. */ this.opt2 = nativeResult.opt2; /** - * Parent names - missing if nationality exists + * The parent names of Romanian ID owner. */ this.parentNames = nativeResult.parentNames; /** - * Place of birth + * Place of birth of the Romanian ID owner. */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * Returns the primary indentifier. If there is more than one component, they are separated with space. - * - * @return primary id of a card holder. + * Defines the primary indentifier. If there is more than one component, they are separated with space. */ this.primaryId = nativeResult.primaryId; /** - * Returns the secondary identifier. If there is more than one component, they are separated with space. - * - * @return secondary id of a card holder + * Defines the secondary identifier. If there is more than one component, they are separated with space. */ this.secondaryId = nativeResult.secondaryId; /** - * Sex of the card holder. Sex is specified by use of the single initial, capital - * letter F for female, M for male or < for unspecified. + * Defines sex of the card holder. Sex is specified by use of the single initial, */ this.sex = nativeResult.sex; /** - * Valid from + * The valid from date of Romanian ID. */ this.validFrom = nativeResult.validFrom != null ? new Date(nativeResult.validFrom) : null; /** - * Valid until + * The valid until date of Romanian ID. */ this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; @@ -10706,88 +8916,64 @@ RomaniaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResult BlinkID.prototype.RomaniaIdFrontRecognizerResult = RomaniaIdFrontRecognizerResult; /** - * Class for configuring Romanian ID Front Recognizer. + * Recognizer for front side of Romanian ID. * - * Romanian ID Front recognizer is used for scanning front side of Romanian ID. */ function RomaniaIdFrontRecognizer() { Recognizer.call(this, 'RomaniaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if the owner's address should be extracted from the ID - * - * + * True if address is being extracted from Romanian ID */ this.extractAddress = true; /** - * Defines if owner's first name should be extracted from the ID - * - * + * True if first name is being extracted from Romanian ID */ this.extractFirstName = true; /** - * Defines if the issued ny data should be extracted from the ID - * - * + * True if issuing authority is being extracted from Romanian ID */ this.extractIssuedBy = true; /** - * Defines if owner's last name should be extracted from the ID - * - * + * True if last name is being extracted from Romanian ID */ this.extractLastName = true; /** - * Defines if the owner's sex information should be extracted from the ID - * from non-MRZ part of the ID. - * - * + * True if sex field outside of the MRZ is being extracted from Romanian ID */ this.extractNonMRZSex = true; /** - * Defines if the place of birth should be extracted from the ID - * - * + * True if place of birth is being extracted from Romanian ID */ this.extractPlaceOfBirth = true; /** - * Defines if the valid from date should be extracted from the ID - * - * + * True if valid from is being extracted from Romanian ID */ this.extractValidFrom = true; /** - * Defines if the valid until date should be extracted from the ID - * - * + * True if valid until is being extracted from Romanian ID */ this.extractValidUntil = true; /** - * 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; @@ -10806,55 +8992,52 @@ function SerbiaCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of Serbian ID owner + * The date of birth of the Serbian ID holder. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Serbian ID owner + * The document date of expiry of the Serbian ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issue of Serbian ID owner + * The document date of issue of the Serbian ID. */ 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The first name of the Serbian ID owner. + * First name of the Serbian ID holder. */ this.firstName = nativeResult.firstName; /** - * 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; @@ -10864,44 +9047,42 @@ function SerbiaCombinedRecognizerResult(nativeResult) { this.identityCardNumber = nativeResult.identityCardNumber; /** - * The issuer of Serbian ID. + * Issuer of the Serbian ID holder. */ this.issuer = nativeResult.issuer; /** - * The JG of Serbian ID owner. + * Personal identification number of the Serbian ID holder. */ this.jmbg = nativeResult.jmbg; /** - * The last name of the Serbian ID owner. + * Last name of the Serbian ID holder. */ this.lastName = nativeResult.lastName; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * True if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * The nationality of the Serbian ID owner. + * Nationality of the Serbian ID holder. */ this.nationality = nativeResult.nationality; /** - * 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; /** - * The sex of the Serbian ID owner. + * Sex of the Serbian ID holder. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -10912,45 +9093,34 @@ SerbiaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResult BlinkID.prototype.SerbiaCombinedRecognizerResult = SerbiaCombinedRecognizerResult; /** - * Serbian ID Combined Recognizer. + * Recognizer for combined reading of both front and back side of Serbian ID. * - * Serbian ID Combined recognizer is used for scanning both front and back side of Serbian ID. */ function SerbiaCombinedRecognizer() { Recognizer.call(this, 'SerbiaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * 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; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -10969,105 +9139,77 @@ function SerbiaIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Holder's date of birth. + * Defines holder's date of birth if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Date of expiry of the document. + * Defines date of expiry if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The document code. Document code contains two characters. For MRTD the first character - * shall be A, C or I. The second character shall be discretion of the issuing State or organization - * except that V shall not be used, and C shall not be used after A except in the crew member - * certificate. On machine-readable passports (MRP) first character shall be P to designate an MRP. - * One additional letter may be used, at the discretion of the issuing State or organization, - * to designate a particular MRP. If the second character position is not used for this purpose, it - * shall be filled by the filter character <. + * Defines document code. Document code contains two characters. For MRTD the first character shall */ this.documentCode = nativeResult.documentCode; /** - * Unique number of the document. Document number contains up to 9 characters. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines document number. Document number contains up to 9 characters. */ this.documentNumber = nativeResult.documentNumber; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Three-letter code which indicate the issuing State. - * Three-letter codes are based on Alpha-3 codes for entities specified in - * ISO 3166-1, with extensions for certain States. + * Defines three-letter or two-letter code which indicate the issuing State. Three-letter codes are based */ this.issuer = nativeResult.issuer; /** - * Boolean value which denotes that MRTD result is successfully parsed. When the result is parsed, all - * properties below are present. - * - * If in the PPMrtdRecognizerSettings you specified allowUnparsedResults = true, then it can happen that - * MRTDRecognizerResult is not parsed. When this happens, this property will be equal to true. - * - * In that case, you can use rawOcrResult property to obtain the raw result of the OCR process, so you can - * implement MRTD parsing in your application. - * - * @return true if MRTD Recognizer result was successfully parsed and all the fields are extracted. false otherwise. + * Defines true if Machine Readable Zone has been parsed, false otherwise. */ this.mrzParsed = nativeResult.mrzParsed; /** - * The entire Machine Readable Zone text from ID. This text is usually used for parsing - * other elements. + * Defines the entire Machine Readable Zone text from ID. This text is usually used for parsing */ this.mrzText = nativeResult.mrzText; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * Defines true if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * Nationality of the holder represented by a three-letter code. Three-letter codes are based - * on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States. + * Defines nationality of the holder represented by a three-letter or two-letter code. Three-letter */ this.nationality = nativeResult.nationality; /** - * First optional data. Returns nil or empty string if not available. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines first optional data.null or empty string if not available. */ this.opt1 = nativeResult.opt1; /** - * Second optional data. Returns nil or empty string if not available. - * Element does not exist on Passports and Visas. To see which document was scanned use documentType property. + * Defines second optional data.null or empty string if not available. */ this.opt2 = nativeResult.opt2; /** - * Returns the primary indentifier. If there is more than one component, they are separated with space. - * - * @return primary id of a card holder. + * Defines the primary indentifier. If there is more than one component, they are separated with space. */ this.primaryId = nativeResult.primaryId; /** - * Returns the secondary identifier. If there is more than one component, they are separated with space. - * - * @return secondary id of a card holder + * Defines the secondary identifier. If there is more than one component, they are separated with space. */ this.secondaryId = nativeResult.secondaryId; /** - * Sex of the card holder. Sex is specified by use of the single initial, capital - * letter F for female, M for male or < for unspecified. + * Defines sex of the card holder. Sex is specified by use of the single initial, */ this.sex = nativeResult.sex; @@ -11078,24 +9220,19 @@ SerbiaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.SerbiaIdBackRecognizerResult = SerbiaIdBackRecognizerResult; /** - * Class for configuring Serbian ID Back Recognizer. + * Recognizer for back side of Serbian ID. * - * Serbian ID Back recognizer is used for scanning back side of Serbian ID. */ function SerbiaIdBackRecognizer() { Recognizer.call(this, 'SerbiaIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -11114,17 +9251,17 @@ function SerbiaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The document number of Serbian ID owner + * The document number of Serbian ID. */ this.documentNumber = nativeResult.documentNumber; /** - * 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; @@ -11134,12 +9271,12 @@ function SerbiaIdFrontRecognizerResult(nativeResult) { this.issuingDate = nativeResult.issuingDate != null ? new Date(nativeResult.issuingDate) : null; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The valid until date of the Serbian ID. + * The valid until of the Serbian ID. */ this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; @@ -11150,52 +9287,39 @@ SerbiaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultS BlinkID.prototype.SerbiaIdFrontRecognizerResult = SerbiaIdFrontRecognizerResult; /** - * Class for configuring Serbian ID Front Recognizer. + * Recognizer for front side of Serbian ID. * - * Serbian ID Front recognizer is used for scanning front side of Serbian ID. */ function SerbiaIdFrontRecognizer() { Recognizer.call(this, 'SerbiaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if issuing date of Serbian ID should be extracted - * - * + * True if issuing date of Serbian ID is being extracted */ this.extractIssuingDate = true; /** - * Defines if valid until date of Serbian ID should be extracted - * - * + * True if valid until is being extracted from Serbian ID */ this.extractValidUntil = true; /** - * 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; @@ -11214,7 +9338,7 @@ function SimNumberRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Returns the recognized SIM number from barcode or empty string if recognition failed. + * Recognized SIM number from barcode or empty string if recognition failed. */ this.simNumber = nativeResult.simNumber; @@ -11245,32 +9369,32 @@ function SingaporeChangiEmployeeIdRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * TThe company name of the Singapore Changi employee ID owner. + * The company name of the Singapore Changi employee ID owner */ this.companyName = nativeResult.companyName; /** - * The date of expiry of Singapore Changi employee ID. + * The date of expiry of Singapore Changi employee ID */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The document number of the Singapore Changi employee ID. + * The document number of the Singapore Changi employee ID */ this.documentNumber = nativeResult.documentNumber; /** - * 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; /** - * The name of the Singapore Changi employee ID owner. + * The name of the Singapore Changi employee ID owner */ this.name = nativeResult.name; @@ -11281,76 +9405,53 @@ SingaporeChangiEmployeeIdRecognizerResult.prototype = new RecognizerResult(Recog BlinkID.prototype.SingaporeChangiEmployeeIdRecognizerResult = SingaporeChangiEmployeeIdRecognizerResult; /** - * Class for configuring Singapore Changi Employee Id Recognizer. - * - * Singapore Changi Employee Id recognizer is used for scanning front side of the Singapore Driver's license.. + * Recognizer which can scan front side of Singapore Changi employee ID cards. */ function SingaporeChangiEmployeeIdRecognizer() { Recognizer.call(this, 'SingaporeChangiEmployeeIdRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if company name should be extracted from the Singapore Changi Employee Id - * - * + * Defines if company name of the Singapore Changi employee ID owner should be extracted */ this.extractCompanyName = true; /** - * Defines if birth of expiry should be extracted from the Singapore Changi Employee Id - * - * + * Defines if date of expiry of the Singapore Changi employee ID should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if owner's name should be extracted from the Singapore Changi Employee Id - * - * + * Defines if name of the Singapore Changi employee ID owner should be extracted */ this.extractName = 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; @@ -11369,17 +9470,17 @@ function SingaporeCombinedRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the back side of the Singapore Id owner. + * The Singapore ID owner's address */ this.address = nativeResult.address; /** - * The address Change Date of the back side of the Singapore Id owner. + * The Singapore ID owner's address change date, present if the address is on a sticker */ this.addressChangeDate = nativeResult.addressChangeDate != null ? new Date(nativeResult.addressChangeDate) : null; /** - * The blood Type of the back side of the Singapore Id owner. + * The Singapore ID owner's blood group */ this.bloodGroup = nativeResult.bloodGroup; @@ -11394,40 +9495,37 @@ function SingaporeCombinedRecognizerResult(nativeResult) { this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date Of Issue of the back side of the Singapore Id owner. + * The Singapore ID's date of issue */ 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ 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; @@ -11447,8 +9545,7 @@ function SingaporeCombinedRecognizerResult(nativeResult) { this.race = nativeResult.race; /** - * 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; @@ -11464,125 +9561,88 @@ SingaporeCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerRes BlinkID.prototype.SingaporeCombinedRecognizerResult = SingaporeCombinedRecognizerResult; /** - * Singapore ID Combined Recognizer. - * - * Singapore ID Combined recognizer is used for scanning both front and back side of Singapore ID. + * Recognizer for combined reading of both front and back side of Singapore ID. */ function SingaporeCombinedRecognizer() { Recognizer.call(this, 'SingaporeCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's address should be extracted from back side of the Singapore Id - * - * + * Defines if Singapore ID owner's address should be extracted */ this.extractAddress = true; /** - * Defines if owner's address change date should be extracted from back side of the Singapore Id - * - * + * Defines if Singapore ID owner's address change date on sticker should be extracted */ this.extractAddressChangeDate = false; /** - * Defines if owner's blood type should be extracted from back side of the Singapore Id - * - * + * Defines if Singapore ID owner's blood group should be extracted */ this.extractBloodGroup = true; /** - * Defines if country/place of birth of Singaporean ID card owner should be extracted - * - * + * Defines if country of birth of Singaporean ID card owner should be extracted. */ this.extractCountryOfBirth = true; /** - * Defines if date of birth of Singaporean ID card owner should be extracted - * - * + * Defines if date of birth of Singaporean ID card owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if owner's date of issue should be extracted from back side of the Singapore Id - * - * + * Defines if Singapore ID's date of issue should be extracted */ this.extractDateOfIssue = true; /** - * Defines if name of Singaporean ID card owner should be extracted - * - * + * Defines if name of Singaporean ID card owner should be extracted. */ this.extractName = true; /** - * Defines if race of Singaporean ID card owner should be extracted - * - * + * Defines if race of Singaporean ID card owner should be extracted. */ this.extractRace = true; /** - * Defines if sex of Singaporean ID card owner should be extracted - * - * + * Defines if sex of Singaporean ID card owner should be extracted. */ this.extractSex = 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; @@ -11601,37 +9661,37 @@ function SingaporeDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The birth Date of the Singapore DL owner. + * The birth date of Singapore driver's owner. */ this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; /** - * 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; /** - * The issue date of the Singapore DL. + * The issue date of Singapore driver's licence. */ this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; /** - * The licence Number of the Singapore DL. + * The licence number of Singapore driver's licence. */ this.licenceNumber = nativeResult.licenceNumber; /** - * The name of the Singapore DL owner. + * The (full) name of Singapore driver's licence owner. */ this.name = nativeResult.name; /** - * The valid till of the Singapore DL. + * The valid till date of Singapore driver's licence. */ this.validTill = nativeResult.validTill != null ? new Date(nativeResult.validTill) : null; @@ -11642,83 +9702,58 @@ SingaporeDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResu BlinkID.prototype.SingaporeDlFrontRecognizerResult = SingaporeDlFrontRecognizerResult; /** - * Class for configuring Singapore Dl Front Recognizer. - * - * Singapore Dl Front recognizer is used for scanning front side of the Singapore Driver's license.. + * The Singapore Dl Front Recognizer is used for scanning front side of the Singapore Dl. */ function SingaporeDlFrontRecognizer() { Recognizer.call(this, 'SingaporeDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's birth date should be extracted from front side of the Singapore DL - * - * + * Defines if birth date of Singapore driver's license owner should be extracted. */ this.extractBirthDate = true; /** - * Defines if the issue date should be extracted from front side of the Singapore DL - * - * + * Defines if issue date of Singapore driver's license should be extracted. */ this.extractIssueDate = true; /** - * Defines if owner's name should be extracted from front side of the Singapore DL - * - * + * Defines if name of Singapore driver's license owner should be extracted. */ this.extractName = true; /** - * Defines if valid till should be extracted from front side of the Singapore DL - * - * + * Defines if valid till date of Singapore driver's license should be extracted. */ this.extractValidTill = 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; @@ -11737,32 +9772,32 @@ function SingaporeIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the back side of the Singapore Id owner. + * The address of Singapore ID owner. */ this.address = nativeResult.address; /** - * The address Change Date of the back side of the Singapore Id owner. + * The address change date, present if the address is on a sticker, of Singapore ID owner. */ this.addressChangeDate = nativeResult.addressChangeDate != null ? new Date(nativeResult.addressChangeDate) : null; /** - * The blood Type of the back side of the Singapore Id owner. + * The blood group of Singapore ID owner. */ this.bloodGroup = nativeResult.bloodGroup; /** - * The card Number of the back side of the Singapore Id owner. + * The card number of Singapore ID. */ this.cardNumber = nativeResult.cardNumber; /** - * The date Of Issue of the back side of the Singapore Id owner. + * The date of issue of Singapore ID. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -11773,68 +9808,48 @@ SingaporeIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.SingaporeIdBackRecognizerResult = SingaporeIdBackRecognizerResult; /** - * Class for configuring Singapore Id Back Recognizer. - * - * Singapore Id Back recognizer is used for scanning back side of the Singapore Id. + * Recognizer which can scan back side of Singapore national ID cards. */ function SingaporeIdBackRecognizer() { Recognizer.call(this, 'SingaporeIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's address should be extracted from back side of the Singapore Id - * - * + * Defines if address of Singapore ID owner should be extracted. */ this.extractAddress = true; /** - * Defines if owner's address change date should be extracted from back side of the Singapore Id - * - * + * Defines if adress change date, present on sticker, of Singapore ID owner should be extracted. */ - this.extractAddressChangeDate = false; + this.extractAddressChangeDate = true; /** - * Defines if owner's blood type should be extracted from back side of the Singapore Id - * - * + * Defines if blood group of Singapore ID owner should be extracted. */ this.extractBloodGroup = true; /** - * Defines if owner's date of issue should be extracted from back side of the Singapore Id - * - * + * Defines if date of issue of Singapore ID should be extracted. */ this.extractDateOfIssue = 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; @@ -11863,12 +9878,12 @@ function SingaporeIdFrontRecognizerResult(nativeResult) { this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * 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; @@ -11899,90 +9914,63 @@ SingaporeIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResu BlinkID.prototype.SingaporeIdFrontRecognizerResult = SingaporeIdFrontRecognizerResult; /** - * Class for configuring Singapore ID Front Recognizer. - * - * Singapore ID Front recognizer is used for scanning front side of Singapore ID. + * Recognizer which can scan front side of Singaporean national ID card. */ function SingaporeIdFrontRecognizer() { Recognizer.call(this, 'SingaporeIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if country/place of birth of Singaporean ID card owner should be extracted - * - * + * Defines if country/place of birth of Singaporean ID card owner should be extracted. */ this.extractCountryOfBirth = true; /** - * Defines if date of birth of Singaporean ID card owner should be extracted - * - * + * Defines if date of birth of Singaporean ID card owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if name of Singaporean ID card owner should be extracted - * - * + * Defines if name of Singaporean ID card owner should be extracted. */ this.extractName = true; /** - * Defines if race of Singaporean ID card owner should be extracted - * - * + * Defines if race of Singaporean ID card owner should be extracted. */ this.extractRace = true; /** - * Defines if sex of Singaporean ID card owner should be extracted - * - * + * Defines if sex of Singaporean ID card owner should be extracted. */ this.extractSex = 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; @@ -12006,35 +9994,32 @@ function SlovakiaCombinedRecognizerResult(nativeResult) { this.address = nativeResult.address; /** - * The date of birth of Slovak ID owner + * The date of birth of Slovak ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Slovak ID owner + * The document date of expiry of the Slovak ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issue of Slovak ID owner + * The document date of issue of the Slovak ID. */ 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; @@ -12044,7 +10029,7 @@ function SlovakiaCombinedRecognizerResult(nativeResult) { this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -12054,12 +10039,12 @@ function SlovakiaCombinedRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * 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; @@ -12074,49 +10059,47 @@ function SlovakiaCombinedRecognizerResult(nativeResult) { this.lastName = nativeResult.lastName; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * True if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * The nationality of the Slovak ID owner. + * Nationality of the Slovak ID owner. */ this.nationality = nativeResult.nationality; /** - * The PIN of the Slovak ID owner. + * Personal identification number of the Slovak ID holder. */ this.personalIdentificationNumber = nativeResult.personalIdentificationNumber; /** - * The place of birth of the Slovak ID owner. + * Place of birth of the Slovak ID holder. */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * 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; /** - * The sex of the Slovak ID owner. + * Sex of the Slovak ID owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The special remarks of Slovak ID. + * Special remarks of the Slovak ID holder. */ this.specialRemarks = nativeResult.specialRemarks; /** - * The surname at birth of Slovak ID. + * Surname at birth of the Slovak ID holder. */ this.surnameAtBirth = nativeResult.surnameAtBirth; @@ -12127,115 +10110,84 @@ SlovakiaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResu BlinkID.prototype.SlovakiaCombinedRecognizerResult = SlovakiaCombinedRecognizerResult; /** - * Slovak ID Combined Recognizer. + * Recognizer for combined reading of both front and back side of Slovak ID. * - * Slovak ID Combined recognizer is used for scanning both front and back side of Slovak ID. */ function SlovakiaCombinedRecognizer() { Recognizer.call(this, 'SlovakiaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's date of birth should be extracted from Slovakian ID - * - * + * True if date of birth is being extracted from ID */ this.extractDateOfBirth = true; /** - * Defines if ID's date of expiry should be extracted - * - * + * True if date of expiry is being extracted from ID */ this.extractDateOfExpiry = true; /** - * Defines if ID's date of issue should be extracted - * - * + * True if date of issue is being extracted from ID */ this.extractDateOfIssue = true; /** - * Defines if issuing document number should be extracted from Slovakian ID - * - * + * True if document number is being extracted from ID */ this.extractDocumentNumber = true; /** - * Defines if issuing authority should be extracted from Slovakian ID - * - * + * True if issuer is being extracted from ID */ this.extractIssuedBy = true; /** - * Defines if owner's nationality should be extracted from Slovakian ID - * - * + * True if nationality is being extracted from ID */ this.extractNationality = true; /** - * Defines if owner's place of birth should be extracted from Slovakian ID - * - * + * True if place of birth is being extracted from ID */ this.extractPlaceOfBirth = true; /** - * Defines if owner's sex should be extracted from Slovakian ID - * - * + * True if sex is being extracted from ID */ this.extractSex = true; /** - * Defines if owner's special remarks should be extracted from Slovakian ID - * - * + * True if special remarks are being extracted from ID */ this.extractSpecialRemarks = true; /** - * Defines if owner's surname at birth should be extracted from Slovakian ID - * - * + * True if surname at birth is being extracted from ID */ this.extractSurnameAtBirth = true; /** - * 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; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -12259,7 +10211,7 @@ function SlovakiaIdBackRecognizerResult(nativeResult) { this.address = nativeResult.address; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -12296,60 +10248,42 @@ function SlovakiaIdBackRecognizer() { Recognizer.call(this, 'SlovakiaIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if address of Slovak ID owner should be extracted. - * - * + * Defines if address of Slovak ID owner should be extracted. */ this.extractAddress = true; /** - * Defines if place of birth of Slovak ID owner should be extracted. - * - * + * Defines if place of birth of Slovak ID owner should be extracted. */ this.extractPlaceOfBirth = true; /** - * Defines if special remarks of Slovak ID owner should be extracted. - * - * + * Defines if special remarks of Slovak ID owner should be extracted. */ this.extractSpecialRemarks = true; /** - * Defines if surname at birth of Slovak ID owner should be extracted. - * - * + * Defines if surname at birth of Slovak ID owner should be extracted. */ this.extractSurnameAtBirth = 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; @@ -12388,7 +10322,7 @@ function SlovakiaIdFrontRecognizerResult(nativeResult) { this.documentNumber = nativeResult.documentNumber; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -12398,7 +10332,7 @@ function SlovakiaIdFrontRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -12428,7 +10362,7 @@ function SlovakiaIdFrontRecognizerResult(nativeResult) { this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -12445,125 +10379,87 @@ function SlovakiaIdFrontRecognizer() { Recognizer.call(this, 'SlovakiaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of Slovak ID owner should be extracted. - * - * + * Defines if date of birth of Slovak ID owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if date of expiry of Slovak ID should be extracted. - * - * + * Defines if date of expiry of Slovak ID should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if date of issue of Slovak ID should be extracted. - * - * + * Defines if date of issue of Slovak ID should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if document number of Slovak ID should be extracted. - * - * + * Defines if document number of Slovak ID should be extracted. */ this.extractDocumentNumber = true; /** - * Defines if first name of Slovak ID owner should be extracted. - * - * + * Defines if first name of Slovak ID owner should be extracted. */ this.extractFirstName = true; /** - * Defines if issuing authority of Slovak ID should be extracted. - * - * + * Defines if issuing authority of Slovak ID should be extracted. */ this.extractIssuedBy = true; /** - * Defines if last name of Slovak ID owner should be extracted. - * - * + * Defines if last name of Slovak ID owner should be extracted. */ this.extractLastName = true; /** - * Defines if nationality of Slovak ID owner should be extracted. - * - * + * Defines if nationality of Slovak ID owner should be extracted. */ this.extractNationality = true; /** - * Defines if sex of Slovak ID owner should be extracted. - * - * + * Defines if sex of Slovak ID owner should be extracted. */ this.extractSex = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -12587,45 +10483,42 @@ function SloveniaCombinedRecognizerResult(nativeResult) { this.address = nativeResult.address; /** - * The nationality of the Slovenian ID owner. + * Citizenship of the Slovenian ID owner. */ this.citizenship = nativeResult.citizenship; /** - * The date of birth of Slovenian ID owner + * The date of birth of Slovenian ID owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of Slovenian ID owner + * The document date of expiry of the Slovenian ID. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issue of Slovenian ID owner + * The document date of issue of the Slovenian ID. */ 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; /** - * Returns true if data from scanned parts/sides of the document match, - * false 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 false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines {true} if data from scanned parts/sides of the document match, */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -12635,12 +10528,12 @@ function SloveniaCombinedRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * 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; @@ -12660,29 +10553,27 @@ function SloveniaCombinedRecognizerResult(nativeResult) { this.lastName = nativeResult.lastName; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * True if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * The PIN of the Slovenian ID owner. + * Personal identification number of the Slovenian ID holder. */ this.personalIdentificationNumber = nativeResult.personalIdentificationNumber; /** - * 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; /** - * The sex of the Slovenian ID owner. + * Sex of the Slovenian ID owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -12693,45 +10584,34 @@ SloveniaCombinedRecognizerResult.prototype = new RecognizerResult(RecognizerResu BlinkID.prototype.SloveniaCombinedRecognizerResult = SloveniaCombinedRecognizerResult; /** - * Slovenian ID Combined Recognizer. + * Recognizer for combined reading of both front and back side of Slovenian ID. * - * Slovenian ID Combined recognizer is used for scanning both front and back side of Slovenian ID. */ function SloveniaCombinedRecognizer() { Recognizer.call(this, 'SloveniaCombinedRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * 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; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; @@ -12750,120 +10630,92 @@ function SloveniaIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The address of the Slovenian ID owner. + * The address of the card holder. */ this.address = nativeResult.address; /** - * The authority of the Slovenian ID. + * The issuing authority of Slovenian ID. */ this.authority = nativeResult.authority; /** - * Holder's date of birth. + * Defines holder's date of birth if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * Date of expiry of the document. + * Defines date of expiry if it is successfully converted to result from MRZ date format: YYMMDD. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * Date of issue of the Slovenian ID. + * The date of issue of the ID. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * The document code. Document code contains two characters. For MRTD the first character - * shall be A, C or I. The second character shall be discretion of the issuing State or organization - * except that V shall not be used, and C shall not be used after A except in the crew member - * certificate. On machine-readable passports (MRP) first character shall be P to designate an MRP. - * One additional letter may be used, at the discretion of the issuing State or organization, - * to designate a particular MRP. If the second character position is not used for this purpose, it - * shall be filled by the filter character <. + * Defines document code. Document code contains two characters. For MRTD the first character shall */ this.documentCode = nativeResult.documentCode; /** - * Unique number of the document. Document number contains up to 9 characters. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines document number. Document number contains up to 9 characters. */ this.documentNumber = nativeResult.documentNumber; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Three-letter code which indicate the issuing State. - * Three-letter codes are based on Alpha-3 codes for entities specified in - * ISO 3166-1, with extensions for certain States. + * Defines three-letter or two-letter code which indicate the issuing State. Three-letter codes are based */ this.issuer = nativeResult.issuer; /** - * Boolean value which denotes that MRTD result is successfully parsed. When the result is parsed, all - * properties below are present. - * - * If in the PPMrtdRecognizerSettings you specified allowUnparsedResults = true, then it can happen that - * MRTDRecognizerResult is not parsed. When this happens, this property will be equal to true. - * - * In that case, you can use rawOcrResult property to obtain the raw result of the OCR process, so you can - * implement MRTD parsing in your application. - * - * @return true if MRTD Recognizer result was successfully parsed and all the fields are extracted. false otherwise. + * Defines true if Machine Readable Zone has been parsed, false otherwise. */ this.mrzParsed = nativeResult.mrzParsed; /** - * The entire Machine Readable Zone text from ID. This text is usually used for parsing - * other elements. + * Defines the entire Machine Readable Zone text from ID. This text is usually used for parsing */ this.mrzText = nativeResult.mrzText; /** - * true if all check digits inside MRZ are correct, false otherwise. - * More specifically, true if MRZ complies with ICAO Document 9303 standard, false otherwise. + * Defines true if all check digits inside MRZ are correct, false otherwise. */ this.mrzVerified = nativeResult.mrzVerified; /** - * Nationality of the holder represented by a three-letter code. Three-letter codes are based - * on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States. + * Defines nationality of the holder represented by a three-letter or two-letter code. Three-letter */ this.nationality = nativeResult.nationality; /** - * First optional data. Returns nil or empty string if not available. - * Element does not exist on US Green Card. To see which document was scanned use documentType property. + * Defines first optional data.null or empty string if not available. */ this.opt1 = nativeResult.opt1; /** - * Second optional data. Returns nil or empty string if not available. - * Element does not exist on Passports and Visas. To see which document was scanned use documentType property. + * Defines second optional data.null or empty string if not available. */ this.opt2 = nativeResult.opt2; /** - * Returns the primary indentifier. If there is more than one component, they are separated with space. - * - * @return primary id of a card holder. + * Defines the primary indentifier. If there is more than one component, they are separated with space. */ this.primaryId = nativeResult.primaryId; /** - * Returns the secondary identifier. If there is more than one component, they are separated with space. - * - * @return secondary id of a card holder + * Defines the secondary identifier. If there is more than one component, they are separated with space. */ this.secondaryId = nativeResult.secondaryId; /** - * Sex of the card holder. Sex is specified by use of the single initial, capital - * letter F for female, M for male or < for unspecified. + * Defines sex of the card holder. Sex is specified by use of the single initial, */ this.sex = nativeResult.sex; @@ -12874,38 +10726,29 @@ SloveniaIdBackRecognizerResult.prototype = new RecognizerResult(RecognizerResult BlinkID.prototype.SloveniaIdBackRecognizerResult = SloveniaIdBackRecognizerResult; /** - * Class for configuring Slovenian ID Back Recognizer. + * Recognizer for the back side of Slovenian ID. * - * Slovenian ID Back recognizer is used for scanning back side of Slovenian ID. */ function SloveniaIdBackRecognizer() { Recognizer.call(this, 'SloveniaIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if issuing authority of Slovenian ID should be extracted - * - * + * True if issuing authority is being extracted from Slovenian ID */ this.extractAuthority = true; /** - * Defines if date of issue of Slovenian ID should be extracted - * - * + * True if date of issue is being extracted from Slovenian ID */ this.extractDateOfIssue = true; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; @@ -12924,17 +10767,17 @@ function SloveniaIdFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of the Slovenian ID owner. + * The date of birth of Slovenian ID owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of expiry of the Slovenian ID owner. + * The date of expiry of Slovenian ID owner */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -12944,7 +10787,7 @@ function SloveniaIdFrontRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -12954,17 +10797,17 @@ function SloveniaIdFrontRecognizerResult(nativeResult) { this.lastName = nativeResult.lastName; /** - * The nationality of the Slovenian ID owner. + * Nationality of the Slovenian ID owner. */ this.nationality = nativeResult.nationality; /** - * The sex of the Slovenian ID owner. + * Sex of the Slovenian ID owner. */ this.sex = nativeResult.sex; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -12975,66 +10818,49 @@ SloveniaIdFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResul BlinkID.prototype.SloveniaIdFrontRecognizerResult = SloveniaIdFrontRecognizerResult; /** - * Class for configuring Slovenian ID Front Recognizer. + * Recognizer which can scan the front side of Slovenian national ID cards. * - * Slovenian ID Front recognizer is used for scanning front side of Slovenian ID. */ function SloveniaIdFrontRecognizer() { Recognizer.call(this, 'SloveniaIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of Slovenian ID owner should be extracted - * - * + * True if date of birth of Slovenian ID owner is being extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry of Slovenian ID should be extracted - * - * + * True if date of expiry is being extracted from Slovenian ID */ this.extractDateOfExpiry = true; /** - * Defines if nationality of Slovenian ID owner should be extracted - * - * + * True if nationality of Slovenian ID owner is being extracted */ this.extractNationality = true; /** - * Defines if sex of Slovenian ID owner should be extracted - * - * + * True if sex of Slovenian ID owner is being extracted */ this.extractSex = true; /** - * 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; @@ -13058,7 +10884,7 @@ function SpainDlFrontRecognizerResult(nativeResult) { this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -13068,7 +10894,7 @@ function SpainDlFrontRecognizerResult(nativeResult) { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -13088,17 +10914,17 @@ function SpainDlFrontRecognizerResult(nativeResult) { this.number = nativeResult.number; /** - * The place of birth of Spain DL owner + * The date of birth of Spain DL owner */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The surname of the Spain DL owner + * The surname of the Spain DL owner. */ this.surname = nativeResult.surname; @@ -13119,126 +10945,88 @@ SpainDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultSt BlinkID.prototype.SpainDlFrontRecognizerResult = SpainDlFrontRecognizerResult; /** - * Spain Driver's License Front Recognizer. - * * Recognizer which can scan front side of Spain national DL cards */ function SpainDlFrontRecognizer() { Recognizer.call(this, 'SpainDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of Spain DL owner should be extracted - * - * + * Defines if date of birth of Spain DL owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if first name of Spain DL owner should be extracted - * - * + * Defines if first name of Spain DL owner should be extracted */ this.extractFirstName = true; /** - * Defines if issuing authority of Spain DL should be extracted - * - * + * Defines if issuing authority of Spain DL should be extracted */ this.extractIssuingAuthority = true; /** - * Defines if licence categories of Spain DL should be extracted - * - * + * Defines if licence categories of Spain DL should be extracted */ this.extractLicenceCategories = true; /** - * Defines if place of birth of Spain DL owner should be extracted - * - * + * Defines if place of birth of Spain DL owner should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if surname of Spain DL owner should be extracted - * - * + * Defines if surname of Spain DL owner should be extracted */ this.extractSurname = true; /** - * Defines if date of issue of Spain DL should be extracted - * - * + * Defines if date of issue of Spain DL should be extracted */ this.extractValidFrom = true; /** - * Defines if date of expiry of Spain DL should be extracted - * - * + * Defines if date of expiry of Spain DL should be extracted */ this.extractValidUntil = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -13257,62 +11045,62 @@ function SwedenDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The Date Of Birth of the Sweden DL owner. + * Date of birth of Sweden DL owner. */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The Date Of Expiry of the Sweden DL. + * Date of expiry of Sweden DL. */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The Date Of Issue of the Sweden DL. + * Date of issue of Sweden DL. */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * 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; /** - * The Issuing Agency of the Sweden DL. + * Issuing agency of Sweden DL card. */ this.issuingAgency = nativeResult.issuingAgency; /** - * The Licence Categories of the Sweden DL. + * Licence categories of Sweden DL. */ this.licenceCategories = nativeResult.licenceCategories; /** - * The Licence Numer of the Sweden DL. + * The licence number of Sweden DL card owner. */ this.licenceNumber = nativeResult.licenceNumber; /** - * The Name of the Sweden DL owner. + * Name of Sweden DL owner. */ this.name = nativeResult.name; /** - * The Reference Number of the Sweden DL. + * Reference number of Sweden DL card. */ this.referenceNumber = nativeResult.referenceNumber; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The Surname of the Sweden DL owner. + * Surname of Sweden DL owner. */ this.surname = nativeResult.surname; @@ -13323,102 +11111,74 @@ SwedenDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerResultS BlinkID.prototype.SwedenDlFrontRecognizerResult = SwedenDlFrontRecognizerResult; /** - * Class for configuring Sweden Dl Front Recognizer. + * Recognizer settings for reading front side of Sweden DL * - * Sweden Dl Front recognizer is used for scanning front side of Sweden Dl. */ function SwedenDlFrontRecognizer() { Recognizer.call(this, 'SwedenDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's date of birth should be extracted from Sweden DL - * - * + * True if date of birth of Sweden DL owner is being extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from Sweden DL - * - * + * True if date of expiry of Sweden DL is being extracted */ this.extractDateOfExpiry = true; /** - * Defines if date of issue should be extracted from Sweden DL - * - * + * True if date of issue of Sweden DL is being extracted */ this.extractDateOfIssue = true; /** - * Defines if issuing agency should be extracted from Sweden DL - * - * + * True if issuing agency of Sweden DL is being extracted */ this.extractIssuingAgency = true; /** - * Defines iflicence categories should be extracted from Sweden DL - * - * + * True if licence categories of Sweden DL is being extracted */ this.extractLicenceCategories = false; /** - * Defines if owner's name should be extracted from Sweden DL - * - * + * True if name of Sweden DL owner is being extracted */ this.extractName = true; /** - * Defines if reference number should be extracted from Sweden DL - * - * + * True if reference number of Sweden DL is being extracted */ this.extractReferenceNumber = true; /** - * Defines if owner's surname should be extracted from Sweden DL - * - * + * True if surname of Sweden DL owner is being extracted */ this.extractSurname = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * Defines the DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * 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; @@ -13437,67 +11197,67 @@ function SwitzerlandDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date of birth of the Switzerland DL owner. + * The date of birth */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The date of rxpiry of the Switzerland DL. + * The date of expiry */ this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; /** - * The date of issue of the Switzerland DL. + * The date of issue */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * If true, then this Switzerland DL will never expire. + * The expiry date permanent */ this.expiryDatePermanent = nativeResult.expiryDatePermanent; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * The first name of the Switzerland DL owner. + * The first name */ this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The issuing authority of the Switzerland DL. + * The issuing authority */ this.issuingAuthority = nativeResult.issuingAuthority; /** - * The last name of the Switzerland DL owner. + * The last name */ this.lastName = nativeResult.lastName; /** - * The license number of the Switzerland DL. + * The license number */ this.licenseNumber = nativeResult.licenseNumber; /** - * The place of birth of the Switzerland DL owner. + * The place of birth */ this.placeOfBirth = nativeResult.placeOfBirth; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; /** - * The vehicle categories of the Switzerland DL. + * The vehicle categories */ this.vehicleCategories = nativeResult.vehicleCategories; @@ -13508,126 +11268,88 @@ SwitzerlandDlFrontRecognizerResult.prototype = new RecognizerResult(RecognizerRe BlinkID.prototype.SwitzerlandDlFrontRecognizerResult = SwitzerlandDlFrontRecognizerResult; /** - * Class for configuring Switzerland DL Front Recognizer. - * - * Switzerland DL Front recognizer is used for scanning front side of the Switzerland DL. + * The Switzerland DL Front Recognizer is used for scanning front side of the Switzerland DL. */ function SwitzerlandDlFrontRecognizer() { Recognizer.call(this, 'SwitzerlandDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's date of birth should be extracted from front side of the Switzerland DL - * - * + * Defines whether date of birth should be extracted */ this.extractDateOfBirth = true; /** - * Defines if date of expiry should be extracted from front side of the Switzerland DL - * - * + * Defines whether date of expiry should be extracted */ this.extractDateOfExpiry = true; /** - * Defines if date of issue should be extracted from front side of the Switzerland DL - * - * + * Defines whether date of issue should be extracted */ this.extractDateOfIssue = true; /** - * Defines if owner's first name should be extracted from front side of the Switzerland DL - * - * + * Defines whether first name should be extracted */ this.extractFirstName = true; /** - * Defines if issuing authority should be extracted from front side of the Switzerland DL - * - * + * Defines whether issuing authority should be extracted */ this.extractIssuingAuthority = true; /** - * Defines if owner's last name should be extracted from front side of the Switzerland DL - * - * + * Defines whether last name should be extracted */ this.extractLastName = true; /** - * Defines if owner's place of birth should be extracted from front side of the Switzerland DL - * - * + * Defines whether place of birth should be extracted */ this.extractPlaceOfBirth = true; /** - * Defines if vehicle categories should be extracted from front side of the Switzerland DL - * - * + * Defines whether vehicle categories should be extracted */ this.extractVehicleCategories = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -13661,7 +11383,7 @@ function SwitzerlandIdBackRecognizerResult(nativeResult) { this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -13698,74 +11420,52 @@ function SwitzerlandIdBackRecognizer() { Recognizer.call(this, 'SwitzerlandIdBackRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if issuing authority of Switzerland ID should be extracted. - * - * + * Defines if issuing authority of Switzerland ID should be extracted. */ this.extractAuthority = true; /** - * Defines if date of expiry of Switzerland ID should be extracted. - * - * + * Defines if date of expiry of Switzerland ID should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if date of issue of Switzerland ID should be extracted. - * - * + * Defines if date of issue of Switzerland ID should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if height of Switzerland ID owner should be extracted. - * - * + * Defines if height of Switzerland ID owner should be extracted. */ this.extractHeight = true; /** - * Defines if place of origin of Switzerland ID owner should be extracted. - * - * + * Defines if place of origin of Switzerland ID owner should be extracted. */ this.extractPlaceOfOrigin = true; /** - * Defines if sex of Switzerland ID owner should be extracted. - * - * + * Defines if sex of Switzerland ID owner should be extracted. */ this.extractSex = 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; @@ -13789,12 +11489,12 @@ function SwitzerlandIdFrontRecognizerResult(nativeResult) { this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * 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; @@ -13804,7 +11504,7 @@ function SwitzerlandIdFrontRecognizerResult(nativeResult) { this.givenName = nativeResult.givenName; /** - * image of the signature if enabled with returnSignatureImage property. + * Signature image from the document */ this.signatureImage = nativeResult.signatureImage; @@ -13826,76 +11526,52 @@ function SwitzerlandIdFrontRecognizer() { Recognizer.call(this, 'SwitzerlandIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if given name of Switzerland ID owner should be extracted. - * - * + * Defines if given name of Switzerland ID owner should be extracted. */ this.extractGivenName = true; /** - * Defines if surname of Switzerland ID owner should be extracted. - * - * + * Defines if surname of Switzerland ID owner should be extracted. */ this.extractSurname = 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; /** - * Sets whether signature image from ID card should be extracted. - * - * + * Defines whether signature image will be available in result. */ this.returnSignatureImage = 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; @@ -13934,12 +11610,12 @@ function SwitzerlandPassportRecognizerResult(nativeResult) { this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * 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; @@ -13991,117 +11667,82 @@ function SwitzerlandPassportRecognizer() { Recognizer.call(this, 'SwitzerlandPassportRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if issuing authority of Switzerland passport should be extracted. - * - * + * Defines if issuing authority of Switzerland passport should be extracted. */ this.extractAuthority = true; /** - * Defines if date of birth of Switzerland passport owner should be extracted. - * - * + * Defines if date of birth of Switzerland passport owner should be extracted. */ this.extractDateOfBirth = true; /** - * Defines if date of expiry of Switzerland passport should be extracted. - * - * + * Defines if date of expiry of Switzerland passport should be extracted. */ this.extractDateOfExpiry = true; /** - * Defines if date of issue of Switzerland passport should be extracted. - * - * + * Defines if date of issue of Switzerland passport should be extracted. */ this.extractDateOfIssue = true; /** - * Defines if given name of Switzerland passport owner should be extracted. - * - * + * Defines if given name of Switzerland passport owner should be extracted. */ this.extractGivenName = true; /** - * Defines if height of Switzerland passport owner should be extracted. - * - * + * Defines if height of Switzerland passport owner should be extracted. */ this.extractHeight = true; /** - * Defines if passport number of Switzerland passport should be extracted. - * - * + * Defines if passport number of Switzerland passport should be extracted. */ this.extractPassportNumber = true; /** - * Defines if place of origin of Switzerland passport owner should be extracted. - * - * + * Defines if place of origin of Switzerland passport owner should be extracted. */ this.extractPlaceOfOrigin = true; /** - * Defines if sex of Switzerland passport owner should be extracted. - * - * + * Defines if sex of Switzerland passport owner should be extracted. */ this.extractSex = true; /** - * Defines if surname of Switzerland passport owner should be extracted. - * - * + * Defines if surname of Switzerland passport owner should be extracted. */ this.extractSurname = 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; @@ -14120,52 +11761,52 @@ function UnitedArabEmiratesDlFrontRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * The date Of Birth of the front side of the United Arab Emirates Dl owner. + * The date of birth of UAE DL owner */ this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; /** - * The expiry Date of the front side of the United Arab Emirates Dl owner. + * The expiry date of UAE DL */ this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; /** - * 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; /** - * The issue Date of the front side of the United Arab Emirates Dl owner. + * The issue date of UAE DL */ this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; /** - * The license Number of the front side of the United Arab Emirates Dl owner. + * The license number of UAE DL */ this.licenseNumber = nativeResult.licenseNumber; /** - * The licensing Authority of the front side of the United Arab Emirates Dl owner. + * The licensing authority code of UAE DL */ this.licensingAuthority = nativeResult.licensingAuthority; /** - * The name of the front side of the United Arab Emirates Dl owner. + * The name of UAE DL owner */ this.name = nativeResult.name; /** - * The nationality of the front side of the United Arab Emirates Dl owner. + * The nationality of UAE DL owner */ this.nationality = nativeResult.nationality; /** - * The place Of Issue of the front side of the United Arab Emirates Dl owner. + * The place of issue of UAE DL */ this.placeOfIssue = nativeResult.placeOfIssue; @@ -14182,96 +11823,67 @@ function UnitedArabEmiratesDlFrontRecognizer() { Recognizer.call(this, 'UnitedArabEmiratesDlFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if date of birth of UAE DL owner should be extracted - * - * + * Defines if date of birth of UAE DL owner should be extracted */ this.extractDateOfBirth = true; /** - * Defines if issue date of UAE DL should be extracted - * - * + * Defines if issue date of UAE DL should be extracted */ this.extractIssueDate = true; /** - * Defines if license number of UAE DL should be extracted - * - * + * Defines if license number of UAE DL should be extracted */ this.extractLicenseNumber = true; /** - * Defines if licensing authority code of UAE DL should be extracted - * - * + * Defines if licensing authority code of UAE DL should be extracted */ this.extractLicensingAuthority = true; /** - * Defines if name of UAE DL owner should be extracted - * - * + * Defines if name of UAE DL owner should be extracted */ this.extractName = true; /** - * Defines if nationality of UAE DL owner should be extracted - * - * + * Defines if nationality of UAE DL owner should be extracted */ this.extractNationality = true; /** - * Defines if place of issue of UAE DL should be extracted - * - * + * Defines if place of issue of UAE DL should be extracted */ this.extractPlaceOfIssue = 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; @@ -14290,12 +11902,12 @@ function UnitedArabEmiratesIdBackRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * The mrz of the back side of United Arab Emirates ID owner. + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -14306,40 +11918,28 @@ UnitedArabEmiratesIdBackRecognizerResult.prototype = new RecognizerResult(Recogn BlinkID.prototype.UnitedArabEmiratesIdBackRecognizerResult = UnitedArabEmiratesIdBackRecognizerResult; /** - * Class for configuring United Arab Emirates ID Back Recognizer. - * - * United Arab Emirates ID Back recognizer is used for scanning back side of United Arab Emirates ID. + * Recognizer which can scan back side of United Arab Emirates national ID cards. */ function UnitedArabEmiratesIdBackRecognizer() { Recognizer.call(this, 'UnitedArabEmiratesIdBackRecognizer'); /** - * 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; @@ -14358,27 +11958,27 @@ function UnitedArabEmiratesIdFrontRecognizerResult(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; /** - * The id Number of the front side of United Arab Emirates ID owner. + * The idNumber of the United Arab Emirates ID owner. */ this.idNumber = nativeResult.idNumber; /** - * The name of the front side of United Arab Emirates ID owner. + * The name of the United Arab Emirates ID owner. */ this.name = nativeResult.name; /** - * The nationality of the front side of United Arab Emirates ID owner. + * The nationality of the United Arab Emirates ID owner. */ this.nationality = nativeResult.nationality; @@ -14389,69 +11989,48 @@ UnitedArabEmiratesIdFrontRecognizerResult.prototype = new RecognizerResult(Recog BlinkID.prototype.UnitedArabEmiratesIdFrontRecognizerResult = UnitedArabEmiratesIdFrontRecognizerResult; /** - * Class for configuring United Arab Emirates ID Front Recognizer. - * - * United Arab Emirates ID Front recognizer is used for scanning front side of United Arab Emirates ID. + * Recognizer which can scan front side of United Arab Emirates national ID cards. */ function UnitedArabEmiratesIdFrontRecognizer() { Recognizer.call(this, 'UnitedArabEmiratesIdFrontRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Defines if owner's name should be extracted from front side of United Arab Emirates ID - * - * + * Defines if name of United Arab Emirates ID owner should be extracted */ this.extractName = true; /** - * Defines if owner's nationality should be extracted from front side of United Arab Emirates ID - * - * + * Defines if nationality of United Arab Emirates ID owner should be extracted */ this.extractNationality = 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; @@ -14470,7 +12049,7 @@ function VinRecognizerResult(nativeResult) { RecognizerResult.call(this, nativeResult.resultState); /** - * Returns the recognized VIN or empty string if recognition failed. + * Scanned VIN (Vehicle Identification Number). */ this.vin = nativeResult.vin; @@ -14481,7 +12060,7 @@ VinRecognizerResult.prototype = new RecognizerResult(RecognizerResultState.empty BlinkID.prototype.VinRecognizerResult = VinRecognizerResult; /** - * Recognizer that can perform recognition of VINs (Vehicle Identification Number). + * Recognizer that can scan VIN (Vehicle Identification Number) barcode. */ function VinRecognizer() { Recognizer.call(this, 'VinRecognizer'); @@ -15514,16 +13093,14 @@ function UsdlCombinedRecognizer() { /** * Property for setting DPI for face images * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * */ 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 - * - * + * */ this.fullDocumentImageDpi = 250; @@ -15536,15 +13113,23 @@ function UsdlCombinedRecognizer() { /** * Sets whether full document image of ID card should be extracted. - * - * + * */ this.returnFullDocumentImage = false; + + /** + * The extension factors for full document image. + */ + this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); + + /** + * Minimum number of stable detections required for detection to be successful. + */ + this.numStableDetectionsThreshold = 6; /** * Whether or not recognition result should be signed. - * - * + * */ this.signResult = false; diff --git a/Release notes.md b/Release notes.md index da0ba57..97cdad8 100644 --- a/Release notes.md +++ b/Release notes.md @@ -1,3 +1,6 @@ +## 4.7.0 +- Updated to [Android SDK v4.7.0](https://github.com/BlinkID/blinkid-android/releases/tag/v4.7.0) and [iOS SDK v4.7.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v4.7.0) + ## 4.6.0 - Updated to [Android SDK v4.6.0](https://github.com/BlinkID/blinkid-android/releases/tag/v4.6.0) and [iOS SDK v4.6.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v4.6.0) diff --git a/www/js/index.js b/www/js/index.js index c374ee3..0ffe848 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -82,8 +82,8 @@ var app = { // package name/bundleID com.microblink.blinkid var licenseKeys = { - android: 'sRwAAAAWY29tLm1pY3JvYmxpbmsuYmxpbmtpZJ9ew00uWSf86/uxZPIAgpV+lwx/GEQJtG/3pXs/OCtzt/FWOkluIgyl1dQxUTIlFupk24/xsXHDkCYBFjWQflFM4v3fSK5PeC2yagL0x2pYZj4bvbdzTTTivGx9KBFraNMlUTQhnS/lwoR00O9cOyVEM+EdKLLsKuM33XozI2xlKREfgFEiueLRMhmClj10fIEGAZtMr7t7gUyK3Zce2QoSAVaN1bm9JGKLHwVEOvsXO7vQawY9SbpW77PaWQ==', - ios: 'sRwAAAEWY29tLm1pY3JvYmxpbmsuYmxpbmtpZFG2rW9X4lA0y++pNb8h7NiZrKam0EWUUV2p6nathR6xkIeVcR1Kysk58jj6YH1XJMvEcTMPvwomeXmBKhma2tyYHy4gQYSQjhcgIVb16h+1I9l9QstzQke+UZXiEgLGduic4irp4oQHvrBsLBfdf7NDNk+nKRJi1RVXCRlM4G6yAs+Aslh7cuifA750qNRH1ZTyLwF6sTxGuEQ0yjLXbZ1W8w+dyksCaKSEwRx4YLL+yqSz/AZRYPCziWxpvA==' + android: 'sRwAAAAWY29tLm1pY3JvYmxpbmsuYmxpbmtpZJ9ew00uWSf86/uxZPa4hZVgtas+jQ5541YiJZ976RAggQPOrc5N8O/l3+rY6WZ4/lf5wmx8A3SNkpwIxV15mSXi5buTRMOG4qBxs3jyPWq0wx5+oKjhJuR/IR+mJaP+hVOWSVuqSaD02u7hsdkflgMyJblCyb4/X1YDJEsP3Wgo+Ug48RfN/qwrEhA7TptY3c4pwyLihW9xaoWDGNrR30/DUl5N1FbWgdanujQ0JkAsXS6q3zMr2sLhU1u2AQ==', + ios: 'sRwAAAEWY29tLm1pY3JvYmxpbmsuYmxpbmtpZFG2rW9X4lA0y++pNbt56NxeFUlNwkHlhe/ZxmxJJ0+pes7fmuKKweVErJkVco+Jhdxt5af8yLyrtf0/MjnXstFX7s6cvsO2oGpwCvJ6DUF2K+UJyvtGpr5+NEP3/l9sXuwJzZjiJwZGXfCrBpzHINFcB3z2LX4D7FqiUfPncq3PgKKzYrnjwjMIfyqpDHrEI9zb2yNkyliK0cRybGOpISSWGR6J5Fnu5MGQ89sHAPqmZDMYW3OjB+/nxWUtdQ==' }; scanButton.addEventListener('click', function() {