Class ParserGroupProcessor
java.lang.Object
com.microblink.photopay.entities.Entity<T>
com.microblink.photopay.entities.processors.Processor<ParserGroupProcessor.Result>
com.microblink.photopay.entities.processors.parserGroup.ParserGroupProcessor
- All Implemented Interfaces:
android.os.Parcelable
Processor that performs OCR on the image and activates all parsers in the
group to extract data of interest from the OCR result.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<ParserGroupProcessor>
Fields inherited from class com.microblink.photopay.entities.processors.Processor
CLASS_NAME
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.void
consumeResultFrom
(Entity other) Consume result from other entity.protected void
deserializeNativeSettings
(byte[] serializedSettings) Parser[]
Returns array of parsers in the parser group.static void
nativeSetParsers
(long nativeContext, long[] nativeParsersContexts) protected byte[]
protected void
terminateNative
(long nativeContext) void
writeToParcel
(android.os.Parcel dest, int i) Methods inherited from class com.microblink.photopay.entities.Entity
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
ParserGroupProcessor
- Parameters:
parsers
- Parsers that are members of the parser group.
-
-
Method Details
-
getParsers
Returns array of parsers in the parser group.- Returns:
- array of parsers in the parser group.
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNative
in classEntity<ParserGroupProcessor.Result>
-
serializeNativeSettings
@Nullable protected byte[] serializeNativeSettings()- Specified by:
serializeNativeSettings
in classEntity<ParserGroupProcessor.Result>
-
deserializeNativeSettings
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings) - Specified by:
deserializeNativeSettings
in classEntity<ParserGroupProcessor.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 classEntity<ParserGroupProcessor.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<ParserGroupProcessor.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<ParserGroupProcessor.Result>
-
nativeSetParsers
public static void nativeSetParsers(long nativeContext, @NonNull long[] nativeParsersContexts)
-