public final class DocumentDetector extends QuadWithSizeDetector
Modifier and Type | Class and Description |
---|---|
static class |
DocumentDetector.Result |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
CLASS_NAME
Constructor and Description |
---|
DocumentDetector(DocumentSpecification[] specifications)
Constructs detector that can perform detection of card documents, cheques, papers, etc.
|
Modifier and Type | Method and Description |
---|---|
DocumentDetector |
clone()
Create a copy of the entity.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
DocumentSpecification[] |
getDocumentSpecifications() |
int |
getNumStableDetectionsThreshold()
Retrieves the minimum number of stable detections required for detection to be successful
|
protected byte[] |
serializeNativeSettings() |
void |
setNumStableDetectionsThreshold(int numStableDetectionsThreshold)
Sets minimum number of stable detections required for detection to be successful
|
protected void |
terminateNative(long nativeContext) |
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, writeToParcel
public DocumentDetector(@NonNull DocumentSpecification[] specifications)
specifications
- Non-empty of non-null specifications describing possible documents that should be detected.public void setNumStableDetectionsThreshold(int numStableDetectionsThreshold)
numStableDetectionsThreshold
- minimum number of stable detections required for detection to be successfulpublic int getNumStableDetectionsThreshold()
@NonNull public DocumentSpecification[] getDocumentSpecifications()
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
@NonNull public DocumentDetector 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.