Class BasicImageLoadOptions


  • public class BasicImageLoadOptions
    extends java.lang.Object
    Basic options for loading image.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicImageLoadOptions​(boolean liveSource)
      Constructs BasicImageLoadOptions with default parameters.
      BasicImageLoadOptions​(Rectangle cropRect, boolean liveSource)
      Constructs BasicImageLoadOptions with the given params.
    • Constructor Detail

      • BasicImageLoadOptions

        public BasicImageLoadOptions​(Rectangle cropRect,
                                     boolean liveSource)
        Constructs BasicImageLoadOptions with the given params.
        Parameters:
        cropRect - If the rect is not empty, the image will be cropped to this rect before processing.
        liveSource - True if the image should be processed in live mode by scanners configured with ProcessingMode.AUTO. Should be set to true for images that come from some video stream, e.g. from the camera or a video file.
      • BasicImageLoadOptions

        public BasicImageLoadOptions​(boolean liveSource)
        Constructs BasicImageLoadOptions with default parameters.
        Parameters:
        liveSource - True if the image should be processed in live mode by scanners configured with ProcessingMode.AUTO. Should be set to true for images that come from some video stream, e.g. from the camera or a video file.
    • Method Detail

      • getCropRect

        public Rectangle getCropRect()
        Getter for cropRect field. See constructor documentation for more information about the field.
        Returns:
        cropRect
      • setCropRect

        public void setCropRect​(Rectangle cropRect)
        Setter for cropRect field. See constructor documentation for more information about the field.
        Parameters:
        cropRect - Value to set.
      • getLiveSource

        public boolean getLiveSource()
        Getter for liveSource field. See constructor documentation for more information about the field.
        Returns:
        liveSource
      • setLiveSource

        public void setLiveSource​(boolean liveSource)
        Setter for liveSource field. See constructor documentation for more information about the field.
        Parameters:
        liveSource - Value to set.