Class ImageReturnProcessor

  • All Implemented Interfaces:
    android.os.Parcelable

    public final class ImageReturnProcessor
    extends Processor<ImageReturnProcessor.Result>
    Processor that will simply save given image.
    • Constructor Detail

      • ImageReturnProcessor

        public ImageReturnProcessor()
    • Method Detail

      • setEncodeImage

        public void setEncodeImage​(boolean encodeImage)
        Defines whether saved image will also be encoded as JPEG. If set to false, only original image will be saved. By default, this is set to 'false'
      • shouldEncodeImage

        public boolean shouldEncodeImage()
        Defines whether saved image will also be encoded as JPEG. If set to false, only original image will be saved. By default, this is set to 'false'
      • clone

        public ImageReturnProcessor 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 the RecognizerRunnerView or RecognizerRunner with the updated entity hierarchy.
        Specified by:
        clone in class Entity<ImageReturnProcessor.Result>
        Returns:
        a copy of the entity
      • consumeResultFrom

        public void consumeResultFrom​(@NonNull
                                      Entity other)
        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 inside BaseIntentTransferable.loadFromIntent(Intent) and similar methods to replace the result content of the saved entities with results that have arrived over Intent
        Specified by:
        consumeResultFrom in class Entity<ImageReturnProcessor.Result>
        Parameters:
        other - Entity from which result should be consumed.