Class ImageReturnProcessor.Result
java.lang.Object
com.microblink.blinkid.entities.Entity.Result
com.microblink.blinkid.entities.processors.Processor.Result
com.microblink.blinkid.entities.processors.imageReturn.ImageReturnProcessor.Result
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- ImageReturnProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.microblink.blinkid.entities.processors.Processor.Result
Processor.Result.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<ImageReturnProcessor.Result>Fields inherited from class com.microblink.blinkid.entities.Entity.Result
mOwnerFields 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 result.protected voiddeserializeFromByteArray(byte[] arr) byte[]JPEG-encoded image or null, depending on whether image encoding was enabled.Returns the raw image saved by the processor.protected byte[]protected voidterminateNative(long nativeContext) toString()Methods inherited from class com.microblink.blinkid.entities.processors.Processor.Result
getResultState, isEmptyMethods inherited from class com.microblink.blinkid.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Result
protected Result(long nativeResult)
-
-
Method Details
-
getEncodedImage
@Nullable public byte[] getEncodedImage()JPEG-encoded image or null, depending on whether image encoding was enabled. -
getRawImage
Returns the raw image saved by the processor. If no image was saved by processor, returns null. NOTE: Internal buffers of the returned image are valid as long as Result object (this) is alive. -
toString
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()- Specified by:
serializeToByteArrayin classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr) - Specified by:
deserializeFromByteArrayin classEntity.Result
-
clone
Description copied from class:Entity.ResultCreate a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clonein classEntity.Result- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNativein classEntity.Result
-