public final class FrameGrabberRecognizer extends Recognizer
FrameCallback.| Modifier and Type | Class and Description |
|---|---|
static class |
FrameGrabberRecognizer.Result |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator |
CREATOR |
| Constructor and Description |
|---|
FrameGrabberRecognizer(FrameCallback frameCallback) |
| Modifier and Type | Method and Description |
|---|---|
FrameGrabberRecognizer |
clone()
Create a copy of the entity.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
FrameCallback |
getFrameCallback()
The
FrameCallback that will receive frames. |
protected byte[] |
serializeNativeSettings() |
void |
setFrameCallback(FrameCallback frameCallback)
The
FrameCallback that will receive frames. |
void |
setGrabFocusedFrames(boolean grabFocusedFrames)
Allow sending focused camera frames to
FrameCallback. |
void |
setGrabUnfocusedFrames(boolean grabUnfocusedFrames)
Allow sending unfocused camera frames to
FrameCallback. |
boolean |
shouldGrabFocusedFrames()
Allow sending focused camera frames to
FrameCallback. |
boolean |
shouldGrabUnfocusedFrames()
Allow sending unfocused camera frames to
FrameCallback. |
protected void |
terminateNative(long nativeContext) |
void |
writeToParcel(android.os.Parcel dest,
int i) |
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeModedescribeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcelpublic FrameGrabberRecognizer(@NonNull
FrameCallback frameCallback)
frameCallback - The FrameCallback that will receive frames.public void setFrameCallback(@NonNull
FrameCallback frameCallback)
FrameCallback that will receive frames.@NonNull public FrameCallback getFrameCallback()
FrameCallback that will receive frames.public void setGrabFocusedFrames(boolean grabFocusedFrames)
FrameCallback.public boolean shouldGrabFocusedFrames()
FrameCallback.public void setGrabUnfocusedFrames(boolean grabUnfocusedFrames)
FrameCallback.public boolean shouldGrabUnfocusedFrames()
FrameCallback.protected void terminateNative(long nativeContext)
terminateNative in class Entitypublic void writeToParcel(@NonNull
android.os.Parcel dest,
int i)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Entity@Nullable protected byte[] serializeNativeSettings()
serializeNativeSettings in class Entityprotected void deserializeNativeSettings(@NonNull
byte[] serializedSettings)
deserializeNativeSettings in class Entity@NonNull public FrameGrabberRecognizer clone()
EntityRecognizerRunnerView
or RecognizerRunner with the updated entity hierarchy.clone in class Recognizerpublic 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.