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, requiresLandscapeModedescribeContents, deserializeNativeSettings, finalize, getNativeContext, getResult, nativeGetNativeResultContext, serializeNativeSettings, terminateNativeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDetectGlare, 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)
Entitycom.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 IntentconsumeResultFrom in class Entityother - Entity from which result should be consumed.public void writeToParcel(@NonNull
android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Entityprotected void readFromParcel(@NonNull
android.os.Parcel in)
readFromParcel in class Entity