Package io.scanbot.sdk.image
Class BasicImageLoadOptions
- java.lang.Object
-
- io.scanbot.sdk.image.BasicImageLoadOptions
-
public class BasicImageLoadOptions extends java.lang.ObjectBasic 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglegetCropRect()Getter for cropRect field.booleangetLiveSource()Getter for liveSource field.voidsetCropRect(Rectangle cropRect)Setter for cropRect field.voidsetLiveSource(boolean liveSource)Setter for liveSource field.
-
-
-
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.
-
-