public final class MRTDDetector extends QuadWithSizeDetector
Modifier and Type | Class and Description |
---|---|
static class |
MRTDDetector.Result |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
CLASS_NAME
Constructor and Description |
---|
MRTDDetector() |
Modifier and Type | Method and Description |
---|---|
MRTDDetector |
clone()
Create a copy of the entity.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
MrtdSpecification[] |
getSpecifications()
Returns the array of
MrtdSpecification objects that will define which MRTD documents
should be detectable. |
boolean |
isDetectFullDocument()
Defines whether full document will be detected.
|
boolean |
isUseCardDetector()
Enable detection correction with card detector.
|
protected byte[] |
serializeNativeSettings() |
void |
setDetectFullDocument(boolean detectFullDocument)
Defines whether full document will be detected.
|
void |
setSpecifications(MrtdSpecification[] specifications)
Sets one or more
MrtdSpecification objects that will define which MRTD documents
should be detectable. |
void |
setUseCardDetector(boolean useCardDetector)
Enable detection correction with card detector.
|
protected void |
terminateNative(long nativeContext) |
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, writeToParcel
public void setDetectFullDocument(boolean detectFullDocument)
public boolean isDetectFullDocument()
public void setUseCardDetector(boolean useCardDetector)
DocumentDetector
to additionally correct document location estimated from detected MRZ location.
Note that although enabling this option will usually improve detection accuracy, it may
be possible that for some use cases accuracy will be lower.
By default, this is set to 'false'public boolean isUseCardDetector()
DocumentDetector
to additionally correct document location estimated from detected MRZ location.
Note that although enabling this option will usually improve detection accuracy, it may
be possible that for some use cases accuracy will be lower.
By default, this is set to 'false'public void setSpecifications(@Nullable MrtdSpecification[] specifications)
MrtdSpecification
objects that will define which MRTD documents
should be detectable. Setting null or empty array will enable all possible specifications.specifications
- specifications for MRTD documents that should be detectable@NonNull public MrtdSpecification[] getSpecifications()
MrtdSpecification
objects that will define which MRTD documents
should be detectable.MrtdSpecification
objects that will define which MRTD documents
should be detectable.protected void terminateNative(long nativeContext)
terminateNative
in class Entity
@Nullable protected byte[] serializeNativeSettings()
serializeNativeSettings
in class Entity
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)
deserializeNativeSettings
in class Entity
public MRTDDetector clone()
Entity
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.public void consumeResultFrom(@NonNull Entity other)
Entity
com.microblink.blinkinput.entities.recognizers.RecognizerBundle#loadFromIntent(Intent)
and similar methods to replace the result content of the saved entities with results that
have arrived over Intent
consumeResultFrom
in class Entity
other
- Entity from which result should be consumed.