Class FrameGrabberRecognizer
java.lang.Object
com.microblink.photopay.entities.Entity<T>
com.microblink.photopay.entities.recognizers.Recognizer<FrameGrabberRecognizer.Result>
com.microblink.photopay.entities.recognizers.framegrabber.FrameGrabberRecognizer
- All Implemented Interfaces:
android.os.Parcelable,JsonizableEntity
A recognizer that never produces a result, but sends every frame that it receives to given
FrameCallback.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<FrameGrabberRecognizer>Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the entity.voidconsumeResultFrom(Entity other) Consume result from other entity.protected voiddeserializeNativeSettings(byte[] serializedSettings) TheFrameCallbackthat will receive frames.protected byte[]voidsetFrameCallback(FrameCallback frameCallback) TheFrameCallbackthat will receive frames.voidsetGrabFocusedFrames(boolean grabFocusedFrames) Allow sending focused camera frames toFrameCallback.voidsetGrabUnfocusedFrames(boolean grabUnfocusedFrames) Allow sending unfocused camera frames toFrameCallback.booleanAllow sending focused camera frames toFrameCallback.booleanAllow sending unfocused camera frames toFrameCallback.protected voidterminateNative(long nativeContext) voidwriteToParcel(android.os.Parcel dest, int i) Methods inherited from class com.microblink.photopay.entities.recognizers.Recognizer
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode, signedJsonNativeGet, toSignedJsonMethods inherited from class com.microblink.photopay.entities.Entity
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
FrameGrabberRecognizer
- Parameters:
frameCallback- TheFrameCallbackthat will receive frames.
-
-
Method Details
-
setFrameCallback
TheFrameCallbackthat will receive frames. -
getFrameCallback
TheFrameCallbackthat will receive frames. -
setGrabFocusedFrames
public void setGrabFocusedFrames(boolean grabFocusedFrames) Allow sending focused camera frames toFrameCallback. -
shouldGrabFocusedFrames
public boolean shouldGrabFocusedFrames()Allow sending focused camera frames toFrameCallback. -
setGrabUnfocusedFrames
public void setGrabUnfocusedFrames(boolean grabUnfocusedFrames) Allow sending unfocused camera frames toFrameCallback. -
shouldGrabUnfocusedFrames
public boolean shouldGrabUnfocusedFrames()Allow sending unfocused camera frames toFrameCallback. -
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNativein classEntity<FrameGrabberRecognizer.Result>
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int i) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classEntity<FrameGrabberRecognizer.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()- Specified by:
serializeNativeSettingsin classEntity<FrameGrabberRecognizer.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings) - Specified by:
deserializeNativeSettingsin classEntity<FrameGrabberRecognizer.Result>
-
clone
Description copied from class:EntityCreate a copy of the entity. This is required if properties of the entity must be modified while background thread performs processing. In order to avoid race conditions, changing properties is not allowed while entity is used in background processing. However, you are able to make a copy of the entity, change properties of it and then update theRecognizerRunnerVieworRecognizerRunnerwith the updated entity hierarchy.- Specified by:
clonein classRecognizer<FrameGrabberRecognizer.Result>- Returns:
- a copy of the entity
-
consumeResultFrom
Description copied from class:EntityConsume result from other entity. The result from other will be put instead current result of this entity. This method is used insideBaseIntentTransferable.loadFromIntent(Intent)and similar methods to replace the result content of the saved entities with results that have arrived overIntent- Specified by:
consumeResultFromin classEntity<FrameGrabberRecognizer.Result>- Parameters:
other- Entity from which result should be consumed.
-