Class BlinkIdMultiSideRecognizer
java.lang.Object
com.microblink.blinkid.entities.Entity<T>
com.microblink.blinkid.entities.recognizers.Recognizer<BlinkIdMultiSideRecognizer.Result>
com.microblink.blinkid.entities.recognizers.blinkid.generic.BlinkIdMultiSideRecognizer
- All Implemented Interfaces:
android.os.Parcelable,CombinedRecognizer,BarcodeScanningStartedCallbackOptions,FaceImageDpiOptions,FullDocumentImageDpiOptions,SignatureImageDpiOptions,EncodeFaceImageOptions,EncodeFullDocumentImagesOptions,EncodeSignatureImageOptions,FullDocumentImageExtensionOptions,FaceImageOptions,FullDocumentImageOptions,SignatureImageOptions,ClassifierCallbackOptions,JsonizableEntity
public final class BlinkIdMultiSideRecognizer
extends Recognizer<BlinkIdMultiSideRecognizer.Result>
implements CombinedRecognizer, FaceImageOptions, FaceImageDpiOptions, EncodeFaceImageOptions, FullDocumentImageOptions, FullDocumentImageDpiOptions, FullDocumentImageExtensionOptions, EncodeFullDocumentImagesOptions, SignatureImageOptions, SignatureImageDpiOptions, EncodeSignatureImageOptions, ClassifierCallbackOptions, BarcodeScanningStartedCallbackOptions
A generic recognizer which can scan front and back side of the document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classConstants used for building JSON for the verification service, in case when result fields can be edited and/or inserted. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<BlinkIdMultiSideRecognizer>Fields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.generic.BarcodeScanningStartedCallbackOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.classifier.ClassifierCallbackOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.CombinedRecognizer
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.encode.EncodeFaceImageOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.encode.EncodeFullDocumentImagesOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.encode.EncodeSignatureImageOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.FaceImageOptions
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.FullDocumentImageOptions
CLASS_NAMEFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageoptions.SignatureImageOptions
CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the entity.voidconsumeResultFrom(Entity other) Consume result from other entity.protected voiddeserializeNativeSettings(byte[] serializedSettings) Returns additional anonymization settings.Redact specific fields based on requirements or laws regarding a specific document.Strictness level for blur detection.Getter for combined result which is associated with this multi-side recognizer.Get custom class rules.intReturns the DPI (Dots Per Inch) for face image that should be returned.intReturns the DPI (Dots Per Inch) for full document image that should be returned.Returns the extension factors for full document image.Strictness level for glare detection.intConfigure the number of characters per field that are allowed to be inconsistent in data match.floatMinimum required distance between the edge of the scanning frame and the document.Returns currently set recognition mode filter.intReturns the DPI (Dots Per Inch) for signature image that should be returned.protected voidreadFromParcel(android.os.Parcel in) protected byte[]voidsetAdditionalAnonymization(ClassAnonymizationSettings[] additionalAnonymization) Enable or disable recognition of specific document groups supported by the current license.voidsetAllowBarcodeScanOnly(boolean allowBarcodeScanOnly) This setting allows barcode recognition to proceed even if the initial extraction fails.voidsetAllowUncertainFrontSideScan(boolean allowUncertainFrontSideScan) Proceed to scan the back side of a document even if some of the validity checks have failed while scanning the front side of a document.voidsetAllowUnparsedMrzResults(boolean allowUnparsedMrzResults) Allow reading of non-standard MRZ (Machine Readable Zone).voidsetAllowUnverifiedMrzResults(boolean allowUnverifiedMrzResults) Allow reading of standard MRZ (Machine Readable Zone) which gets successfully parsed, but check digits are incorrect (do not comply with the ICAO standard).voidsetAnonymizationMode(AnonymizationMode anonymizationMode) Redact specific fields based on requirements or laws regarding a specific document.voidsetBarcodeScanningStartedCallback(BarcodeScanningStartedCallback barcodeScanningStartedCallback) Sets theBarcodeScanningStartedCallbackthat will be invoked from the recognizer when barcode scanning step starts.voidsetBlurStrictnessLevel(StrictnessLevel blurStrictnessLevel) Strictness level for blur detection.voidsetClassFilter(ClassFilter classFilter) Sets theClassFilterthat can determine whether document should be processed or filtered out.voidsetClassifierCallback(ClassifierCallback classifierCallback) Sets theClassifierCallbackthat will be invoked from the recognizer when document is classified.voidsetCombineFrameResults(boolean combineFrameResults) This setting enables the aggregation of data from multiple frames.voidsetCustomClassRules(CustomClassRules[] customClassRules) Define custom rules for specific document class.voidsetDewarpedImageCallback(DewarpedImageCallback dewarpedImageCallback) Sets theDewarpedImageCallbackthat will receive dewarped document images.voidsetEnableBlurFilter(boolean enableBlurFilter) Skip processing of the blurred frames.voidsetEnableGlareFilter(boolean enableGlareFilter) Skip processing of the frames with glare.voidsetEncodeFaceImage(boolean encodeFaceImage) Sets whether face image from document should be encoded in JPEG format and written into the corresponding recognition result.voidsetEncodeFullDocumentImage(boolean encodeFullDocumentImage) Sets whether full document image should be encoded in JPEG format and written into the corresponding recognition result.voidsetEncodeSignatureImage(boolean encodeSignatureImage) Sets whether signature image from document should be encoded in JPEG format and written into the corresponding recognition result.voidsetFaceImageDpi(int desiredDPI) Sets desired DPI (Dots Per Inch) for face image that should be returned.voidsetFullDocumentImageDpi(int desiredDPI) Sets desired DPI (Dots Per Inch) for full document image that should be returned.voidsetFullDocumentImageExtensionFactors(ImageExtensionFactors fullDocumentImageExtensionFactors) Sets extension factors for full document image.voidsetGlareStrictnessLevel(StrictnessLevel glareStrictnessLevel) Strictness level for glare detection.voidsetMaxAllowedMismatchesPerField(int maxAllowedMismatchesPerField) Configure the number of characters per field that are allowed to be inconsistent in data match.voidsetPaddingEdge(float paddingEdge) Minimum required distance between the edge of the scanning frame and the document.voidsetRecognitionModeFilter(RecognitionModeFilter recognitionModeFilter) Enable or disable recognition of specific document groups supported by the current license.voidsetReturnFaceImage(boolean returnFaceImage) Sets whether face image from document should be available inFaceImageResult.voidsetReturnFullDocumentImage(boolean returnFullDocumentImage) Sets whether full document image should be available inFullDocumentImageResult.voidsetReturnSignatureImage(boolean returnSignatureImage) Sets whether signature image should be available inSignatureImageResult.voidsetSaveCameraFrames(boolean saveCameraFrames) Save the raw camera frames at the moment of the data extraction or timeout.voidsetScanCroppedDocumentImage(boolean scanCroppedDocumentImage) Process only cropped document images with corrected perspective (frontal images of a document).voidsetScanPassportDataPageOnly(boolean scanPassportDataPageOnly) Scan only the data page ( page containing MRZ ) of the passport.voidsetSignatureImageDpi(int desiredDPI) Sets desired DPI (Dots Per Inch) for signature image that should be returned.voidsetSkipUnsupportedBack(boolean skipUnsupportedBack) Back side of the document will not be scanned if only the front side is supported for a specific document.voidsetValidateResultCharacters(boolean validateResultCharacters) Allow only results containing expected characters for a given field.booleanThis setting allows barcode recognition to proceed even if the initial extraction fails.booleanProceed to scan the back side of a document even if some of the validity checks have failed while scanning the front side of a document.booleanAllow reading of non-standard MRZ (Machine Readable Zone).booleanAllow reading of standard MRZ (Machine Readable Zone) which gets successfully parsed, but check digits are incorrect (do not comply with the ICAO standard).booleanThis setting enables the aggregation of data from multiple frames.booleanSkip processing of the blurred frames.booleanSkip processing of the frames with glare.booleanReturns whether encoding of face image from document and writing it into the recognition result is enabled.booleanReturns whether encoding of full document images and writing them into the recognition result is enabled.booleanReturns whether encoding of signature image and writing it into the recognition result is enabled.booleanReturns whether face image will be available inFaceImageResult.booleanReturns whether full document image will be available inFullDocumentImageResult.booleanReturns whether signature image will be available inSignatureImageResult.booleanSave the raw camera frames at the moment of the data extraction or timeout.booleanProcess only cropped document images with corrected perspective (frontal images of a document).booleanScan only the data page ( page containing MRZ ) of the passport.booleanBack side of the document will not be scanned if only the front side is supported for a specific document.booleanAllow only results containing expected characters for a given field.protected voidterminateNative(long nativeContext) voidwriteToParcel(android.os.Parcel dest, int flags) Methods inherited from class com.microblink.blinkid.entities.recognizers.Recognizer
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode, signedJsonNativeGet, toSignedJsonMethods inherited from class com.microblink.blinkid.entities.Entity
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext
-
Field Details
-
CREATOR
-
-
Constructor Details
-
BlinkIdMultiSideRecognizer
public BlinkIdMultiSideRecognizer()
-
-
Method Details
-
setReturnFaceImage
public void setReturnFaceImage(boolean returnFaceImage) Description copied from interface:FaceImageOptionsSets whether face image from document should be available inFaceImageResult. If enabled, get image usingFaceImageResult.getFaceImage()By default, this is set to 'false'. IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, android.content.Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISED- Specified by:
setReturnFaceImagein interfaceFaceImageOptions- Parameters:
returnFaceImage- whether face image will be available inFaceImageResult.
-
shouldReturnFaceImage
public boolean shouldReturnFaceImage()Description copied from interface:FaceImageOptionsReturns whether face image will be available inFaceImageResult. By default, this is set to 'false'.- Specified by:
shouldReturnFaceImagein interfaceFaceImageOptions- Returns:
- whether face image will be available in
FaceImageResult.
-
setValidateResultCharacters
public void setValidateResultCharacters(boolean validateResultCharacters) Allow only results containing expected characters for a given field. Each field is validated against a set of rules. All fields have to be successfully validated in order for a recognizer state to becom.microblink.blinkid.recognition.RecognitionSuccessType.SUCCESSFUL. Setting is used to improve scanning accuracy. By default, this is set to 'true'. -
shouldValidateResultCharacters
public boolean shouldValidateResultCharacters()Allow only results containing expected characters for a given field. Each field is validated against a set of rules. All fields have to be successfully validated in order for a recognizer state to becom.microblink.blinkid.recognition.RecognitionSuccessType.SUCCESSFUL. Setting is used to improve scanning accuracy. By default, this is set to 'true'. -
setCombineFrameResults
public void setCombineFrameResults(boolean combineFrameResults) This setting enables the aggregation of data from multiple frames. Disabling this setting will yield higher-quality captured images, but it may slow down the scanning process due to the additional effort required to find the optimal frame. Enabling this setting will simplify the extraction process, but the extracted data will be aggregated from multiple frames instead of being sourced from a single frame. By default, this is set to 'true'. -
shouldCombineFrameResults
public boolean shouldCombineFrameResults()This setting enables the aggregation of data from multiple frames. Disabling this setting will yield higher-quality captured images, but it may slow down the scanning process due to the additional effort required to find the optimal frame. Enabling this setting will simplify the extraction process, but the extracted data will be aggregated from multiple frames instead of being sourced from a single frame. By default, this is set to 'true'. -
setScanCroppedDocumentImage
public void setScanCroppedDocumentImage(boolean scanCroppedDocumentImage) Process only cropped document images with corrected perspective (frontal images of a document). This only applies to still images - video feed will ignore this setting. By default, this is set to 'false'. -
shouldScanCroppedDocumentImage
public boolean shouldScanCroppedDocumentImage()Process only cropped document images with corrected perspective (frontal images of a document). This only applies to still images - video feed will ignore this setting. By default, this is set to 'false'. -
setScanPassportDataPageOnly
public void setScanPassportDataPageOnly(boolean scanPassportDataPageOnly) Scan only the data page ( page containing MRZ ) of the passport. If set to 'false', it will be required to scan the second page of certain passports. By default, this is set to 'true'. -
shouldScanPassportDataPageOnly
public boolean shouldScanPassportDataPageOnly()Scan only the data page ( page containing MRZ ) of the passport. If set to 'false', it will be required to scan the second page of certain passports. By default, this is set to 'true'. -
setSaveCameraFrames
public void setSaveCameraFrames(boolean saveCameraFrames) Save the raw camera frames at the moment of the data extraction or timeout. This significantly increases memory consumption. The scanning performance is not affected. By default, this is set to 'false'. -
shouldSaveCameraFrames
public boolean shouldSaveCameraFrames()Save the raw camera frames at the moment of the data extraction or timeout. This significantly increases memory consumption. The scanning performance is not affected. By default, this is set to 'false'. -
setEncodeFullDocumentImage
public void setEncodeFullDocumentImage(boolean encodeFullDocumentImage) Description copied from interface:EncodeFullDocumentImagesOptionsSets whether full document image should be encoded in JPEG format and written into the corresponding recognition result. By default, this is set to 'false'.
IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISED- Specified by:
setEncodeFullDocumentImagein interfaceEncodeFullDocumentImagesOptions- Parameters:
encodeFullDocumentImage- whether full document images should be encoded in JPEG format and written into the corresponding recognition result.
-
shouldEncodeFullDocumentImage
public boolean shouldEncodeFullDocumentImage()Description copied from interface:EncodeFullDocumentImagesOptionsReturns whether encoding of full document images and writing them into the recognition result is enabled. By default, this is set to 'false'.- Specified by:
shouldEncodeFullDocumentImagein interfaceEncodeFullDocumentImagesOptions- Returns:
- whether encoding of full document images and writing them into the recognition result is enabled.
-
setAllowUnverifiedMrzResults
public void setAllowUnverifiedMrzResults(boolean allowUnverifiedMrzResults) Allow reading of standard MRZ (Machine Readable Zone) which gets successfully parsed, but check digits are incorrect (do not comply with the ICAO standard). Final recognizer state is not affected. By default, this is set to 'true'. -
shouldAllowUnverifiedMrzResults
public boolean shouldAllowUnverifiedMrzResults()Allow reading of standard MRZ (Machine Readable Zone) which gets successfully parsed, but check digits are incorrect (do not comply with the ICAO standard). Final recognizer state is not affected. By default, this is set to 'true'. -
setEncodeFaceImage
public void setEncodeFaceImage(boolean encodeFaceImage) Description copied from interface:EncodeFaceImageOptionsSets whether face image from document should be encoded in JPEG format and written into the corresponding recognition result. By default, this is set to 'false'.
IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, android.content.Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISED- Specified by:
setEncodeFaceImagein interfaceEncodeFaceImageOptions- Parameters:
encodeFaceImage- whether face image should be encoded in JPEG format and written into the corresponding recognition result.
-
shouldEncodeFaceImage
public boolean shouldEncodeFaceImage()Description copied from interface:EncodeFaceImageOptionsReturns whether encoding of face image from document and writing it into the recognition result is enabled. By default, this is set to 'false'.- Specified by:
shouldEncodeFaceImagein interfaceEncodeFaceImageOptions- Returns:
- whether encoding of face image from document and writing it into the recognition result is enabled.
-
setReturnSignatureImage
public void setReturnSignatureImage(boolean returnSignatureImage) Description copied from interface:SignatureImageOptionsSets whether signature image should be available inSignatureImageResult. If enabled, get image usingSignatureImageResult.getSignatureImage()By default, this is set to 'false'. IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, android.content.Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISED- Specified by:
setReturnSignatureImagein interfaceSignatureImageOptions- Parameters:
returnSignatureImage- whether signature image will be available inSignatureImageResult.
-
shouldReturnSignatureImage
public boolean shouldReturnSignatureImage()Description copied from interface:SignatureImageOptionsReturns whether signature image will be available inSignatureImageResult. By default, this is set to 'false'.- Specified by:
shouldReturnSignatureImagein interfaceSignatureImageOptions- Returns:
- whether signature image will be available in
SignatureImageResult.
-
setPaddingEdge
public void setPaddingEdge(@FloatRange(from=0.0,to=1.0) float paddingEdge) Minimum required distance between the edge of the scanning frame and the document. Defined as a percentage of the frame width. By default, this is set to '0.0' in which case the padding edge and the image edge are the same. Alternative recommended value is 0.02f. -
getPaddingEdge
@FloatRange(from=0.0, to=1.0) public float getPaddingEdge()Minimum required distance between the edge of the scanning frame and the document. Defined as a percentage of the frame width. By default, this is set to '0.0' in which case the padding edge and the image edge are the same. Alternative recommended value is 0.02f. -
setBlurStrictnessLevel
Strictness level for blur detection. By default, this is set to 'Normal' -
getBlurStrictnessLevel
Strictness level for blur detection. By default, this is set to 'Normal' -
setEncodeSignatureImage
public void setEncodeSignatureImage(boolean encodeSignatureImage) Description copied from interface:EncodeSignatureImageOptionsSets whether signature image from document should be encoded in JPEG format and written into the corresponding recognition result. By default, this is set to 'false'.
IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, android.content.Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISED- Specified by:
setEncodeSignatureImagein interfaceEncodeSignatureImageOptions- Parameters:
encodeSignatureImage- whether signature image should be encoded in JPEG format and written into the corresponding recognition result.
-
shouldEncodeSignatureImage
public boolean shouldEncodeSignatureImage()Description copied from interface:EncodeSignatureImageOptionsReturns whether encoding of signature image and writing it into the recognition result is enabled. By default, this is set to 'false'.- Specified by:
shouldEncodeSignatureImagein interfaceEncodeSignatureImageOptions- Returns:
- whether encoding of signature image and writing it into the recognition result is enabled.
-
setMaxAllowedMismatchesPerField
public void setMaxAllowedMismatchesPerField(@IntRange(from=0L) int maxAllowedMismatchesPerField) Configure the number of characters per field that are allowed to be inconsistent in data match. By default, this is set to '0'. -
getMaxAllowedMismatchesPerField
@IntRange(from=0L) public int getMaxAllowedMismatchesPerField()Configure the number of characters per field that are allowed to be inconsistent in data match. By default, this is set to '0'. -
setReturnFullDocumentImage
public void setReturnFullDocumentImage(boolean returnFullDocumentImage) Description copied from interface:FullDocumentImageOptionsSets whether full document image should be available inFullDocumentImageResult. If enabled, get image usingFullDocumentImageResult.getFullDocumentImage()By default, this is set to 'false'. IMPORTANT NOTE: If you setMicroblinkSDK.setIntentDataTransferMode(com.microblink.blinkid.intent.IntentDataTransferMode)toIntentDataTransferMode.STANDARDrecognizer which contains encoded image cannot be parcelized and passed byIntentextras because of Android limitations on intent extras size. If you are using one of the provided scan activities and expect receiving scan results inActivity.onActivityResult(int, int, android.content.Intent)method use eitherIntentDataTransferMode.OPTIMISEDorIntentDataTransferMode.PERSISTED_OPTIMISEDBy default, this is set to 'false'- Specified by:
setReturnFullDocumentImagein interfaceFullDocumentImageOptions- Parameters:
returnFullDocumentImage- whether full document image will be available inFullDocumentImageResult.
-
shouldReturnFullDocumentImage
public boolean shouldReturnFullDocumentImage()Description copied from interface:FullDocumentImageOptionsReturns whether full document image will be available inFullDocumentImageResult. By default, this is set to 'false'. By default, this is set to 'false'- Specified by:
shouldReturnFullDocumentImagein interfaceFullDocumentImageOptions- Returns:
- whether full document image will be available in
FullDocumentImageResult.
-
setAllowUncertainFrontSideScan
public void setAllowUncertainFrontSideScan(boolean allowUncertainFrontSideScan) Proceed to scan the back side of a document even if some of the validity checks have failed while scanning the front side of a document. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'. -
shouldAllowUncertainFrontSideScan
public boolean shouldAllowUncertainFrontSideScan()Proceed to scan the back side of a document even if some of the validity checks have failed while scanning the front side of a document. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'. -
setAllowBarcodeScanOnly
public void setAllowBarcodeScanOnly(boolean allowBarcodeScanOnly) This setting allows barcode recognition to proceed even if the initial extraction fails. If the barcode recognition is successful, the recognizer will still end in a valid state. This setting is applicable only to photo frames. For multi-side recognizers, it is permitted only for the back side. By default, this is set to 'false'. -
shouldAllowBarcodeScanOnly
public boolean shouldAllowBarcodeScanOnly()This setting allows barcode recognition to proceed even if the initial extraction fails. If the barcode recognition is successful, the recognizer will still end in a valid state. This setting is applicable only to photo frames. For multi-side recognizers, it is permitted only for the back side. By default, this is set to 'false'. -
setAllowUnparsedMrzResults
public void setAllowUnparsedMrzResults(boolean allowUnparsedMrzResults) Allow reading of non-standard MRZ (Machine Readable Zone). Only raw MRZ result is returned. Final recognizer state is not affected. By default, this is set to 'false'. -
shouldAllowUnparsedMrzResults
public boolean shouldAllowUnparsedMrzResults()Allow reading of non-standard MRZ (Machine Readable Zone). Only raw MRZ result is returned. Final recognizer state is not affected. By default, this is set to 'false'. -
setGlareStrictnessLevel
Strictness level for glare detection. By default, this is set to 'Normal' -
getGlareStrictnessLevel
Strictness level for glare detection. By default, this is set to 'Normal' -
setEnableGlareFilter
public void setEnableGlareFilter(boolean enableGlareFilter) Skip processing of the frames with glare. By default, this is set to 'true' -
shouldEnableGlareFilter
public boolean shouldEnableGlareFilter()Skip processing of the frames with glare. By default, this is set to 'true' -
setAnonymizationMode
Redact specific fields based on requirements or laws regarding a specific document. Data can be redacted from the image, the result or both. The setting applies to certain documents only. By default, this is set to 'FullResult'. -
getAnonymizationMode
Redact specific fields based on requirements or laws regarding a specific document. Data can be redacted from the image, the result or both. The setting applies to certain documents only. By default, this is set to 'FullResult'. -
setEnableBlurFilter
public void setEnableBlurFilter(boolean enableBlurFilter) Skip processing of the blurred frames. By default, this is set to 'true' -
shouldEnableBlurFilter
public boolean shouldEnableBlurFilter()Skip processing of the blurred frames. By default, this is set to 'true' -
setSkipUnsupportedBack
public void setSkipUnsupportedBack(boolean skipUnsupportedBack) Back side of the document will not be scanned if only the front side is supported for a specific document. If set to false, a photo of the back side will be returned, as well as barcode or MRZ (Machine Readable Zone) if either is present. By default, this is set to 'false'. -
shouldSkipUnsupportedBack
public boolean shouldSkipUnsupportedBack()Back side of the document will not be scanned if only the front side is supported for a specific document. If set to false, a photo of the back side will be returned, as well as barcode or MRZ (Machine Readable Zone) if either is present. By default, this is set to 'false'. -
getFaceImageDpi
public int getFaceImageDpi()Returns the DPI (Dots Per Inch) for face image that should be returned. By default, this is set to '250'.- Specified by:
getFaceImageDpiin interfaceFaceImageDpiOptions- Returns:
- DPI for face image that should be returned.
-
setFaceImageDpi
public void setFaceImageDpi(@IntRange(from=100L,to=400L) int desiredDPI) Sets desired DPI (Dots Per Inch) for face image that should be returned. By default, this is set to '250'.- Specified by:
setFaceImageDpiin interfaceFaceImageDpiOptions- Parameters:
desiredDPI- desired DPI in range [100, 400]
-
getFullDocumentImageDpi
public int getFullDocumentImageDpi()Returns the DPI (Dots Per Inch) for full document image that should be returned. By default, this is set to '250'.- Specified by:
getFullDocumentImageDpiin interfaceFullDocumentImageDpiOptions- Returns:
- DPI for full document image that should be returned.
-
setFullDocumentImageDpi
public void setFullDocumentImageDpi(@IntRange(from=100L,to=400L) int desiredDPI) Sets desired DPI (Dots Per Inch) for full document image that should be returned. By default, this is set to '250'.- Specified by:
setFullDocumentImageDpiin interfaceFullDocumentImageDpiOptions- Parameters:
desiredDPI- desired DPI in range [100, 400]
-
setFullDocumentImageExtensionFactors
public void setFullDocumentImageExtensionFactors(@NonNull ImageExtensionFactors fullDocumentImageExtensionFactors) Sets extension factors for full document image. By default, this is set to '[0.0, 0.0, 0.0, 0.0]'.- Specified by:
setFullDocumentImageExtensionFactorsin interfaceFullDocumentImageExtensionOptions- Parameters:
fullDocumentImageExtensionFactors- extension factors for full document image.
-
getFullDocumentImageExtensionFactors
Returns the extension factors for full document image. By default, this is set to '[0.0, 0.0, 0.0, 0.0]'.- Specified by:
getFullDocumentImageExtensionFactorsin interfaceFullDocumentImageExtensionOptions- Returns:
- extension factors for full document image.
-
getSignatureImageDpi
public int getSignatureImageDpi()Returns the DPI (Dots Per Inch) for signature image that should be returned. By default, this is set to '250'.- Specified by:
getSignatureImageDpiin interfaceSignatureImageDpiOptions- Returns:
- DPI for signature image that should be returned.
-
setSignatureImageDpi
public void setSignatureImageDpi(@IntRange(from=100L,to=400L) int desiredDPI) Sets desired DPI (Dots Per Inch) for signature image that should be returned. By default, this is set to '250'.- Specified by:
setSignatureImageDpiin interfaceSignatureImageDpiOptions- Parameters:
desiredDPI- desired DPI in range [100, 400]
-
setRecognitionModeFilter
Enable or disable recognition of specific document groups supported by the current license. By default, this is set to '[true, true, true, true, true, true]'. -
getRecognitionModeFilter
Returns currently set recognition mode filter. By default, this is set to 'all modes are enabled'. -
setAdditionalAnonymization
public void setAdditionalAnonymization(@NonNull ClassAnonymizationSettings[] additionalAnonymization) Enable or disable recognition of specific document groups supported by the current license. By default, this is set to '[]'. -
getAdditionalAnonymization
Returns additional anonymization settings. By default, this is set to '[]'. -
setCustomClassRules
Define custom rules for specific document class. The new class rules will be a combination of our internal and user-defined rules. The more detailed class filter will have priority over the other. By default, this is set to '[]'.- Parameters:
customClassRules- Array of custom class rules.
-
getCustomClassRules
Get custom class rules.- Returns:
- Array of custom class rules. By default, this is set to '[]'.
-
setDewarpedImageCallback
Sets theDewarpedImageCallbackthat will receive dewarped document images.- Parameters:
dewarpedImageCallback-DewarpedImageCallbackthat will receive dewarped document images.
-
setClassifierCallback
Sets theClassifierCallbackthat will be invoked from the recognizer when document is classified.- Specified by:
setClassifierCallbackin interfaceClassifierCallbackOptions- Parameters:
classifierCallback-ClassifierCallbackthat will be invoked from the recognizer when document is classified.
-
setBarcodeScanningStartedCallback
public void setBarcodeScanningStartedCallback(@Nullable BarcodeScanningStartedCallback barcodeScanningStartedCallback) Description copied from interface:BarcodeScanningStartedCallbackOptionsSets theBarcodeScanningStartedCallbackthat will be invoked from the recognizer when barcode scanning step starts.- Specified by:
setBarcodeScanningStartedCallbackin interfaceBarcodeScanningStartedCallbackOptions- Parameters:
barcodeScanningStartedCallback-BarcodeScanningStartedCallbackthat will be invoked from the recognizer when barcode scanning step starts.
-
setClassFilter
Sets theClassFilterthat can determine whether document should be processed or filtered out.- Parameters:
classFilter-ClassFilterthat can determine whether document should be processed or filtered out or null to allow processing of all documents.
-
getCombinedResult
Getter for combined result which is associated with this multi-side recognizer.- Specified by:
getCombinedResultin interfaceCombinedRecognizer- Returns:
- combined result which is associated with this multi-side recognizer.
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classEntity<BlinkIdMultiSideRecognizer.Result>
-
readFromParcel
protected void readFromParcel(@NonNull android.os.Parcel in) - Overrides:
readFromParcelin classEntity<BlinkIdMultiSideRecognizer.Result>
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNativein classEntity<BlinkIdMultiSideRecognizer.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()- Specified by:
serializeNativeSettingsin classEntity<BlinkIdMultiSideRecognizer.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings) - Specified by:
deserializeNativeSettingsin classEntity<BlinkIdMultiSideRecognizer.Result>
-
clone
Description copied from class:EntityCreate a copy of the entity. This is required if properties of the entity must be modified while background thread performs processing. In order to avoid race conditions, changing properties is not allowed while entity is used in background processing. However, you are able to make a copy of the entity, change properties of it and then update theRecognizerRunnerVieworRecognizerRunnerwith the updated entity hierarchy.- Specified by:
clonein classRecognizer<BlinkIdMultiSideRecognizer.Result>- Returns:
- a copy of the entity
-
consumeResultFrom
Description copied from class:EntityConsume result from other entity. The result from other will be put instead current result of this entity. This method is used insideBaseIntentTransferable.loadFromIntent(Intent)and similar methods to replace the result content of the saved entities with results that have arrived overIntent- Specified by:
consumeResultFromin classEntity<BlinkIdMultiSideRecognizer.Result>- Parameters:
other- Entity from which result should be consumed.
-