Preview
data class Preview(val cameraImage: RectangleDouble, val detectionArea: RectangleDouble, val placeholderDiameterToShorterSideRatio: Double)
Geometric properties of the preview. All rectangles are defined relative to the preview container.
Constructors
Link copied to clipboard
constructor(cameraImage: RectangleDouble, detectionArea: RectangleDouble, placeholderDiameterToShorterSideRatio: Double)
Properties
Link copied to clipboard
A rectangular region defined relative to the container where the camera image is displayed in the container. E.g. RectangleDouble(left=0.0, top=0.25, right=1.0, bottom=0.75) means that the cameraImage is positioned in the full width of the container, but the height is shorter than the container height. This is typical for scale type com.innovatrics.dot.camera.CameraPreviewScaleType.FIT.
Link copied to clipboard
A rectangular region defined relative to the container that defines the portion of the camera image used for detection.
Link copied to clipboard
A value defined relative to the container shorter side that represents the placeholder diameter.