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

public static final class ImageReturnProcessor.Result extends Processor.Result
  • Field Details

  • 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

      @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 String toString()
      Overrides:
      toString in class Object
    • serializeToByteArray

      @Nullable protected byte[] serializeToByteArray()
      Specified by:
      serializeToByteArray in class Entity.Result
    • deserializeFromByteArray

      protected void deserializeFromByteArray(@NonNull byte[] arr)
      Specified by:
      deserializeFromByteArray in class Entity.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 class Entity.Result
      Returns:
      a copy of the result
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity.Result