Class UsdlCombinedRecognizer
java.lang.Object
com.microblink.blinkid.entities.Entity<T>
com.microblink.blinkid.entities.recognizers.Recognizer<UsdlCombinedRecognizer.Result>
com.microblink.blinkid.entities.recognizers.blinkid.usdl.UsdlCombinedRecognizer
- All Implemented Interfaces:
android.os.Parcelable,CombinedRecognizer,FaceImageDpiOptions,FullDocumentImageDpiOptions,EncodeFaceImageOptions,EncodeFullDocumentImagesOptions,FullDocumentImageExtensionOptions,FaceImageOptions,FullDocumentImageOptions,JsonizableEntity
@Deprecated
public final class UsdlCombinedRecognizer
extends Recognizer<UsdlCombinedRecognizer.Result>
implements FullDocumentImageOptions, FullDocumentImageDpiOptions, EncodeFullDocumentImagesOptions, FaceImageOptions, FaceImageDpiOptions, FullDocumentImageExtensionOptions, EncodeFaceImageOptions, CombinedRecognizer
Deprecated.
Recognizer for combined reading of face from front side of documents and USDL barcode from back side of
US driver's license.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.static final classDeprecated.Constants 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<UsdlCombinedRecognizer>Deprecated.Fields 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.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_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.Create a copy of the entity.voidconsumeResultFrom(Entity other) Deprecated.Consume result from other entity.protected voiddeserializeNativeSettings(byte[] serializedSettings) Deprecated.Deprecated.Getter for combined result which is associated with this combined recognizer.intDeprecated.Returns the DPI (Dots Per Inch) for face image that should be returned.intDeprecated.Returns the DPI (Dots Per Inch) for full document image that should be returned.Deprecated.Returns the extension factors for full document image.intDeprecated.Minimum number of stable detections required for detection to be successful.protected byte[]Deprecated.voidsetEncodeFaceImage(boolean encodeFaceImage) Deprecated.Sets whether face image from document should be encoded in JPEG format and written into the corresponding recognition result.voidsetEncodeFullDocumentImage(boolean encodeFullDocumentImage) Deprecated.Sets whether full document image should be encoded in JPEG format and written into the corresponding recognition result.voidsetFaceImageDpi(int desiredDPI) Deprecated.Sets desired DPI (Dots Per Inch) for face image that should be returned.voidsetFullDocumentImageDpi(int desiredDPI) Deprecated.Sets desired DPI (Dots Per Inch) for full document image that should be returned.voidsetFullDocumentImageExtensionFactors(ImageExtensionFactors fullDocumentImageExtensionFactors) Deprecated.Sets extension factors for full document image.voidsetNumStableDetectionsThreshold(int numStableDetectionsThreshold) Deprecated.Minimum number of stable detections required for detection to be successful.voidsetReturnFaceImage(boolean returnFaceImage) Deprecated.Sets whether face image from document should be available inFaceImageResult.voidsetReturnFullDocumentImage(boolean returnFullDocumentImage) Deprecated.Sets whether full document image should be available inFullDocumentImageResult.booleanDeprecated.Returns whether encoding of face image from document and writing it into the recognition result is enabled.booleanDeprecated.Returns whether encoding of full document images and writing them into the recognition result is enabled.booleanDeprecated.Returns whether face image will be available inFaceImageResult.booleanDeprecated.Returns whether full document image will be available inFullDocumentImageResult.protected voidterminateNative(long nativeContext) Deprecated.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, readFromParcel, writeToParcel
-
Field Details
-
CREATOR
Deprecated.
-
-
Constructor Details
-
UsdlCombinedRecognizer
public UsdlCombinedRecognizer()Deprecated.
-
-
Method Details
-
setReturnFaceImage
public void setReturnFaceImage(boolean returnFaceImage) Deprecated.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()Deprecated.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.
-
setReturnFullDocumentImage
public void setReturnFullDocumentImage(boolean returnFullDocumentImage) Deprecated.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()Deprecated.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.
-
setEncodeFullDocumentImage
public void setEncodeFullDocumentImage(boolean encodeFullDocumentImage) Deprecated.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()Deprecated.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.
-
setNumStableDetectionsThreshold
public void setNumStableDetectionsThreshold(@IntRange(from=1L,to=255L) int numStableDetectionsThreshold) Deprecated.Minimum number of stable detections required for detection to be successful. By default, this is set to '6'. -
getNumStableDetectionsThreshold
@IntRange(from=1L, to=255L) public int getNumStableDetectionsThreshold()Deprecated.Minimum number of stable detections required for detection to be successful. By default, this is set to '6'. -
setEncodeFaceImage
public void setEncodeFaceImage(boolean encodeFaceImage) Deprecated.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()Deprecated.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.
-
getFullDocumentImageDpi
public int getFullDocumentImageDpi()Deprecated.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) Deprecated.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]
-
getFaceImageDpi
public int getFaceImageDpi()Deprecated.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) Deprecated.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]
-
setFullDocumentImageExtensionFactors
public void setFullDocumentImageExtensionFactors(@NonNull ImageExtensionFactors fullDocumentImageExtensionFactors) Deprecated.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
Deprecated.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.
-
getCombinedResult
Deprecated.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.
-
terminateNative
protected void terminateNative(long nativeContext) Deprecated.- Specified by:
terminateNativein classEntity<UsdlCombinedRecognizer.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()Deprecated.- Specified by:
serializeNativeSettingsin classEntity<UsdlCombinedRecognizer.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings) Deprecated.- Specified by:
deserializeNativeSettingsin classEntity<UsdlCombinedRecognizer.Result>
-
clone
Deprecated.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<UsdlCombinedRecognizer.Result>- Returns:
- a copy of the entity
-
consumeResultFrom
Deprecated.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<UsdlCombinedRecognizer.Result>- Parameters:
other- Entity from which result should be consumed.
-