Package io.scanbot.sdk.core
Class RawImageLoadOptions
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class RawImageLoadOptions implements Parcelable
Options for loading images that come from sensor.
-
-
Field Summary
Fields Modifier and Type Field Description private Rect
roi
private ImageRotation
orientation
-
Constructor Summary
Constructors Constructor Description RawImageLoadOptions(Map<String, Object> source)
RawImageLoadOptions(JSONObject json)
RawImageLoadOptions(Rect roi, ImageRotation orientation)
-
Method Summary
Modifier and Type Method Description final Rect
getRoi()
Region of interest. final Unit
setRoi(Rect roi)
Region of interest. final ImageRotation
getOrientation()
Rotation that should be applied to the image to recover correct orientation. final Unit
setOrientation(ImageRotation orientation)
Rotation that should be applied to the image to recover correct orientation. final JSONObject
toJson(ToJsonConfiguration config)
final RawImageLoadOptions
clone()
final static RawImageLoadOptions
default()
-
-
-
Constructor Detail
-
RawImageLoadOptions
RawImageLoadOptions(JSONObject json)
-
RawImageLoadOptions
RawImageLoadOptions(Rect roi, ImageRotation orientation)
-
-
Method Detail
-
getOrientation
final ImageRotation getOrientation()
Rotation that should be applied to the image to recover correct orientation.
Default is NONE
-
setOrientation
final Unit setOrientation(ImageRotation orientation)
Rotation that should be applied to the image to recover correct orientation.
Default is NONE
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final RawImageLoadOptions clone()
-
default
final static RawImageLoadOptions default()
-
-