Class SuccessFrameGrabberRecognizer
java.lang.Object
com.microblink.blinkid.entities.Entity<T>
com.microblink.blinkid.entities.recognizers.Recognizer<SuccessFrameGrabberRecognizer.Result>
com.microblink.blinkid.entities.recognizers.successframe.SuccessFrameGrabberRecognizer
- All Implemented Interfaces:
android.os.Parcelable
,JsonizableEntity
public final class SuccessFrameGrabberRecognizer
extends Recognizer<SuccessFrameGrabberRecognizer.Result>
A recognizer that holds the camera frame on which given recognizer's result has become valid.
If given recognizer never becomes valid, SuccessFrameRecognizer's result will not contain the
camera frame.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<SuccessFrameGrabberRecognizer>
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a copy of the entity.void
consumeResultFrom
(Entity other) Consume result from other entity.protected void
deserializeNativeSettings
(byte[] serializedSettings) Recognizer<?>
protected byte[]
protected void
terminateNative
(long nativeContext) void
writeToParcel
(android.os.Parcel dest, int i) Methods inherited from class com.microblink.blinkid.entities.recognizers.Recognizer
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode, signedJsonNativeGet, toSignedJson
Methods inherited from class com.microblink.blinkid.entities.Entity
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
SuccessFrameGrabberRecognizer
- Parameters:
recognizer
- Recognizer that SuccessFrameGrabberRecognizer will watch.
-
-
Method Details
-
getSlaveRecognizer
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNative
in classEntity<SuccessFrameGrabberRecognizer.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()- Specified by:
serializeNativeSettings
in classEntity<SuccessFrameGrabberRecognizer.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings) - Specified by:
deserializeNativeSettings
in classEntity<SuccessFrameGrabberRecognizer.Result>
-
clone
Description copied from class:Entity
Create 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 theRecognizerRunnerView
orRecognizerRunner
with the updated entity hierarchy.- Specified by:
clone
in classRecognizer<SuccessFrameGrabberRecognizer.Result>
- Returns:
- a copy of the entity
-
consumeResultFrom
Description copied from class:Entity
Consume 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:
consumeResultFrom
in classEntity<SuccessFrameGrabberRecognizer.Result>
- Parameters:
other
- Entity from which result should be consumed.
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int i) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Overrides:
writeToParcel
in classEntity<SuccessFrameGrabberRecognizer.Result>
-