public abstract class TemplatingRecognizer extends Recognizer implements GlareDetectorOptions
Modifier and Type | Class and Description |
---|---|
static class |
TemplatingRecognizer.Result |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
Modifier | Constructor and Description |
---|---|
protected |
TemplatingRecognizer(long nativeRecognizer,
TemplatingRecognizer.Result concreteResult) |
protected |
TemplatingRecognizer(long nativeRecognizer,
TemplatingRecognizer.Result concreteResult,
android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
readFromParcel(android.os.Parcel in) |
protected abstract void |
setNativeTemplatingClasses(long[] nativeTemplatingClasses) |
void |
setTemplatingClasses(TemplatingClass[] classes)
Sets zero or more
TemplatingClass that will try to be matched against document that
is being recognized. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
clone, getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode
describeContents, deserializeNativeSettings, finalize, getNativeContext, getResult, nativeGetNativeResultContext, serializeNativeSettings, terminateNative
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDetectGlare, shouldDetectGlare
@NonNull public static final java.lang.String CLASS_NAME
protected TemplatingRecognizer(long nativeRecognizer, @NonNull TemplatingRecognizer.Result concreteResult)
protected TemplatingRecognizer(long nativeRecognizer, @NonNull TemplatingRecognizer.Result concreteResult, @NonNull android.os.Parcel in)
public final void setTemplatingClasses(@Nullable TemplatingClass[] classes)
TemplatingClass
that will try to be matched against document that
is being recognized.classes
- Zero or more TemplatingClass
objects representing specific class of documents.protected abstract void setNativeTemplatingClasses(@Nullable long[] nativeTemplatingClasses)
@CallSuper 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.public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Entity
protected void readFromParcel(@NonNull android.os.Parcel in)
readFromParcel
in class Entity