Package io.scanbot.sdk.image
Class BasicImageLoadOptions
java.lang.Object
io.scanbot.sdk.image.BasicImageLoadOptions
Basic options for loading image.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicImageLoadOptions(boolean liveSource) Constructs BasicImageLoadOptions with default parameters.BasicImageLoadOptions(Rectangle cropRect, boolean liveSource, CanvasColor canvasColor) Constructs BasicImageLoadOptions with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for canvasColor field.Getter for cropRect field.booleanGetter for liveSource field.voidsetCanvasColor(CanvasColor canvasColor) Setter for canvasColor field.voidsetCropRect(Rectangle cropRect) Setter for cropRect field.voidsetLiveSource(boolean liveSource) Setter for liveSource field.
-
Constructor Details
-
BasicImageLoadOptions
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.canvasColor- CanvasColor color to use when converting images with alpha channel to images without alpha channel. Default is `WHITE`.
-
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 Details
-
getCropRect
Getter for cropRect field. See constructor documentation for more information about the field.- Returns:
- cropRect
-
setCropRect
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.
-
getCanvasColor
Getter for canvasColor field. See constructor documentation for more information about the field.- Returns:
- canvasColor
-
setCanvasColor
Setter for canvasColor field. See constructor documentation for more information about the field.- Parameters:
canvasColor- Value to set.
-