Class BlinkIdCombinedRecognizer
- java.lang.Object
-
- com.microblink.documentverification.entities.Entity<T>
-
- com.microblink.documentverification.entities.recognizers.Recognizer<BlinkIdCombinedRecognizer.Result>
-
- com.microblink.documentverification.entities.recognizers.blinkid.generic.BlinkIdCombinedRecognizer
-
- All Implemented Interfaces:
android.os.Parcelable,CombinedRecognizer,BarcodeScanningStartedCallbackOptions,FaceImageDpiOptions,FullDocumentImageDpiOptions,SignatureImageDpiOptions,EncodeFaceImageOptions,EncodeFullDocumentImagesOptions,EncodeSignatureImageOptions,FullDocumentImageExtensionOptions,FaceImageOptions,FullDocumentImageOptions,SignatureImageOptions,ClassifierCallbackOptions,JsonizableEntity
public final class BlinkIdCombinedRecognizer extends Recognizer<BlinkIdCombinedRecognizer.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 Classes Modifier and Type Class Description static classBlinkIdCombinedRecognizer.Resultstatic classBlinkIdCombinedRecognizer.VerificationConstantsConstants used for building JSON for the verification service, in case when result fields can be edited and/or inserted.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BlinkIdCombinedRecognizer>CREATOR-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.generic.BarcodeScanningStartedCallbackOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.classifier.ClassifierCallbackOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.CombinedRecognizer
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.encode.EncodeFaceImageOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.encode.EncodeFullDocumentImagesOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.encode.EncodeSignatureImageOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.FaceImageOptions
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.FullDocumentImageOptions
CLASS_NAME
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageoptions.SignatureImageOptions
CLASS_NAME
-
-
Constructor Summary
Constructors Constructor Description BlinkIdCombinedRecognizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlinkIdCombinedRecognizerclone()Create a copy of the entity.voidconsumeResultFrom(Entity other)Consume result from other entity.protected voiddeserializeNativeSettings(byte[] serializedSettings)AnonymizationModegetAnonymizationMode()Whether sensitive data should be removed from images, result fields or both.CombinedResultgetCombinedResult()Getter for combined result which is associated with this combined recognizer.intgetFaceImageDpi()Returns the DPI (Dots Per Inch) for face image that should be returned.intgetFullDocumentImageDpi()Returns the DPI (Dots Per Inch) for full document image that should be returned.ImageExtensionFactorsgetFullDocumentImageExtensionFactors()Returns the extension factors for full document image.intgetMaxAllowedMismatchesPerField()Configure the number of characters per field that are allowed to be inconsistent in data match.floatgetPaddingEdge()Padding is a minimum distance from the edge of the frame and it is defined as a percentage of the frame width.RecognitionModeFiltergetRecognitionModeFilter()Returns currently set recognition mode filter.intgetSignatureImageDpi()Returns the DPI (Dots Per Inch) for signature image that should be returned.protected voidreadFromParcel(android.os.Parcel in)protected byte[]serializeNativeSettings()voidsetAllowBlurFilter(boolean allowBlurFilter)Defines whether blured frames filtering is allowed.voidsetAllowUncertainFrontSideScan(boolean allowUncertainFrontSideScan)Proceed with scanning the back side even if the front side result is uncertain.voidsetAllowUnparsedMrzResults(boolean allowUnparsedMrzResults)Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed.voidsetAllowUnverifiedMrzResults(boolean allowUnverifiedMrzResults)Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed.voidsetAnonymizationMode(AnonymizationMode anonymizationMode)Whether sensitive data should be removed from images, result fields or both.voidsetBarcodeScanningStartedCallback(BarcodeScanningStartedCallback barcodeScanningStartedCallback)Sets theBarcodeScanningStartedCallbackthat will be invoked from the recognizer when barcode scanning step starts.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.voidsetDewarpedImageCallback(DewarpedImageCallback dewarpedImageCallback)Sets theDewarpedImageCallbackthat will receive dewarped document images.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.voidsetMaxAllowedMismatchesPerField(int maxAllowedMismatchesPerField)Configure the number of characters per field that are allowed to be inconsistent in data match.voidsetPaddingEdge(float paddingEdge)Padding is a minimum distance from the edge of the frame and it is defined as a percentage of the frame width.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)Configure the recognizer to save the raw camera frames.voidsetScanCroppedDocumentImage(boolean scanCroppedDocumentImage)Configure the recognizer to only work on already cropped and dewarped images.voidsetSignatureImageDpi(int desiredDPI)Sets desired DPI (Dots Per Inch) for signature image that should be returned.voidsetSkipUnsupportedBack(boolean skipUnsupportedBack)Skip back side capture and processing step when back side of the document is not supported.voidsetValidateResultCharacters(boolean validateResultCharacters)Whether result characters validatation is performed.booleanshouldAllowBlurFilter()Defines whether blured frames filtering is allowed.booleanshouldAllowUncertainFrontSideScan()Proceed with scanning the back side even if the front side result is uncertain.booleanshouldAllowUnparsedMrzResults()Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed.booleanshouldAllowUnverifiedMrzResults()Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed.booleanshouldEncodeFaceImage()Returns whether encoding of face image from document and writing it into the recognition result is enabled.booleanshouldEncodeFullDocumentImage()Returns whether encoding of full document images and writing them into the recognition result is enabled.booleanshouldEncodeSignatureImage()Returns whether encoding of signature image and writing it into the recognition result is enabled.booleanshouldReturnFaceImage()Returns whether face image will be available inFaceImageResult.booleanshouldReturnFullDocumentImage()Returns whether full document image will be available inFullDocumentImageResult.booleanshouldReturnSignatureImage()Returns whether signature image will be available inSignatureImageResult.booleanshouldSaveCameraFrames()Configure the recognizer to save the raw camera frames.booleanshouldScanCroppedDocumentImage()Configure the recognizer to only work on already cropped and dewarped images.booleanshouldSkipUnsupportedBack()Skip back side capture and processing step when back side of the document is not supported.booleanshouldValidateResultCharacters()Whether result characters validatation is performed.protected voidterminateNative(long nativeContext)voidwriteToParcel(android.os.Parcel dest, int flags)-
Methods inherited from class com.microblink.documentverification.entities.recognizers.Recognizer
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode, signedJsonNativeGet, toSignedJson
-
Methods inherited from class com.microblink.documentverification.entities.Entity
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BlinkIdCombinedRecognizer> CREATOR
-
-
Method Detail
-
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.documentverification.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)
Whether result characters validatation is performed. If a result member contains invalid character, the result state cannot be valid. By default, this is set to 'true'.
-
shouldValidateResultCharacters
public boolean shouldValidateResultCharacters()
Whether result characters validatation is performed. If a result member contains invalid character, the result state cannot be valid. By default, this is set to 'true'.
-
setScanCroppedDocumentImage
public void setScanCroppedDocumentImage(boolean scanCroppedDocumentImage)
Configure the recognizer to only work on already cropped and dewarped images. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'.
-
shouldScanCroppedDocumentImage
public boolean shouldScanCroppedDocumentImage()
Configure the recognizer to only work on already cropped and dewarped images. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'.
-
setSaveCameraFrames
public void setSaveCameraFrames(boolean saveCameraFrames)
Configure the recognizer to save the raw camera frames. This significantly increases memory consumption. By default, this is set to 'false'.
-
shouldSaveCameraFrames
public boolean shouldSaveCameraFrames()
Configure the recognizer to save the raw camera frames. This significantly increases memory consumption. 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.documentverification.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)
Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. Unverified MRZ is parsed, but check digits are incorrect. By default, this is set to 'true'.
-
shouldAllowUnverifiedMrzResults
public boolean shouldAllowUnverifiedMrzResults()
Defines whether returning unverified MRZ (Machine Readable Zone) results is allowed. Unverified MRZ is parsed, but check digits are incorrect. 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.documentverification.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.documentverification.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)Padding is a minimum distance from the edge of the frame and it is defined as a percentage of the frame width. Recommended value is '0.02'. By default, this is set to '0.0' which means that padding edge and image edge are the same.
-
getPaddingEdge
@FloatRange(from=0.0, to=1.0) public float getPaddingEdge()Padding is a minimum distance from the edge of the frame and it is defined as a percentage of the frame width. Recommended value is '0.02'. By default, this is set to '0.0' which means that padding edge and image edge are the same.
-
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.documentverification.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'.
-
setAllowBlurFilter
public void setAllowBlurFilter(boolean allowBlurFilter)
Defines whether blured frames filtering is allowed. By default, this is set to 'true'
-
shouldAllowBlurFilter
public boolean shouldAllowBlurFilter()
Defines whether blured frames filtering is allowed. By default, this is set to 'true'
-
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.documentverification.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 with scanning the back side even if the front side result is uncertain. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'.
-
shouldAllowUncertainFrontSideScan
public boolean shouldAllowUncertainFrontSideScan()
Proceed with scanning the back side even if the front side result is uncertain. This only works for still images - video feeds will ignore this setting. By default, this is set to 'false'.
-
setAllowUnparsedMrzResults
public void setAllowUnparsedMrzResults(boolean allowUnparsedMrzResults)
Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. By default, this is set to 'false'.
-
shouldAllowUnparsedMrzResults
public boolean shouldAllowUnparsedMrzResults()
Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed. By default, this is set to 'false'.
-
setAnonymizationMode
public void setAnonymizationMode(@NonNull AnonymizationMode anonymizationMode)Whether sensitive data should be removed from images, result fields or both. The setting only applies to certain documents. By default, this is set to 'FullResult'.
-
getAnonymizationMode
@NonNull public AnonymizationMode getAnonymizationMode()
Whether sensitive data should be removed from images, result fields or both. The setting only applies to certain documents. By default, this is set to 'FullResult'.
-
setSkipUnsupportedBack
public void setSkipUnsupportedBack(boolean skipUnsupportedBack)
Skip back side capture and processing step when back side of the document is not supported. By default, this is set to 'false'.
-
shouldSkipUnsupportedBack
public boolean shouldSkipUnsupportedBack()
Skip back side capture and processing step when back side of the document is not supported. 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
@NonNull public ImageExtensionFactors 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
public void setRecognitionModeFilter(@NonNull RecognitionModeFilter recognitionModeFilter)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
@NonNull public RecognitionModeFilter getRecognitionModeFilter()
Returns currently set recognition mode filter. By default, this is set to 'all modes are enabled'.
-
setDewarpedImageCallback
public void setDewarpedImageCallback(@Nullable DewarpedImageCallback dewarpedImageCallback)Sets theDewarpedImageCallbackthat will receive dewarped document images.- Parameters:
dewarpedImageCallback-DewarpedImageCallbackthat will receive dewarped document images.
-
setClassifierCallback
public void setClassifierCallback(@Nullable ClassifierCallback classifierCallback)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
public void setClassFilter(@Nullable ClassFilter classFilter)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
@Nullable public CombinedResult getCombinedResult()
Getter for combined result which is associated with this combined recognizer.- Specified by:
getCombinedResultin interfaceCombinedRecognizer- Returns:
- combined result which is associated with this combined recognizer.
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classEntity<BlinkIdCombinedRecognizer.Result>
-
readFromParcel
protected void readFromParcel(@NonNull android.os.Parcel in)- Overrides:
readFromParcelin classEntity<BlinkIdCombinedRecognizer.Result>
-
terminateNative
protected void terminateNative(long nativeContext)
- Specified by:
terminateNativein classEntity<BlinkIdCombinedRecognizer.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()
- Specified by:
serializeNativeSettingsin classEntity<BlinkIdCombinedRecognizer.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)- Specified by:
deserializeNativeSettingsin classEntity<BlinkIdCombinedRecognizer.Result>
-
clone
public BlinkIdCombinedRecognizer 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<BlinkIdCombinedRecognizer.Result>- Returns:
- a copy of the entity
-
consumeResultFrom
public void consumeResultFrom(@NonNull Entity other)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<BlinkIdCombinedRecognizer.Result>- Parameters:
other- Entity from which result should be consumed.
-
-