Class ImageReturnProcessor.Result
- java.lang.Object
-
- com.microblink.entities.Entity.Result
-
- com.microblink.entities.processors.Processor.Result
-
- com.microblink.entities.processors.imageReturn.ImageReturnProcessor.Result
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- ImageReturnProcessor
public static final class ImageReturnProcessor.Result extends Processor.Result
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microblink.entities.processors.Processor.Result
Processor.Result.State
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<ImageReturnProcessor.Result>
CREATOR
-
Fields inherited from class com.microblink.entities.Entity.Result
mOwner
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Result(long nativeResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageReturnProcessor.Result
clone()
Create a copy of the result.protected void
deserializeFromByteArray(byte[] arr)
byte[]
getEncodedImage()
JPEG-encoded image or null, depending on whether image encoding was enabled.Image
getRawImage()
Returns the raw image saved by the processor.protected byte[]
serializeToByteArray()
protected void
terminateNative(long nativeContext)
java.lang.String
toString()
-
Methods inherited from class com.microblink.entities.processors.Processor.Result
getResultState, isEmpty
-
Methods inherited from class com.microblink.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<ImageReturnProcessor.Result> CREATOR
-
-
Method Detail
-
getEncodedImage
@Nullable public byte[] getEncodedImage()
JPEG-encoded image or null, depending on whether image encoding was enabled.
-
getRawImage
@Nullable public Image 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()
- Specified by:
serializeToByteArray
in classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr)
- Specified by:
deserializeFromByteArray
in classEntity.Result
-
clone
public ImageReturnProcessor.Result clone()
Description copied from class:Entity.Result
Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clone
in classEntity.Result
- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext)
- Specified by:
terminateNative
in classEntity.Result
-
-