VpsControllerConfig

data class VpsControllerConfig(val backgroundScanTimeInterval: Duration? = null, val backgroundScanDistanceThreshold: Double = 15.0, val backgroundScanFailureResetThreshold: Int = 10, val foregroundScanMinInclinationAngle: Double? = null, val backgroundScanMinInclinationAngle: Double = 75.0, val slowConnectionTimeout: Duration = 5.seconds, val useGrayscaleImageForVps: Boolean = false, val cameraImageMaxSizeSmallerSide: Int = 720, val useJpgImageForVps: Boolean = true, val jpgImageCompressionQuality: Int = 70)

Configuration for VPS scan scheduling, inclination filtering, and image capture.

Constructors

Link copied to clipboard
constructor(backgroundScanTimeInterval: Duration? = null, backgroundScanDistanceThreshold: Double = 15.0, backgroundScanFailureResetThreshold: Int = 10, foregroundScanMinInclinationAngle: Double? = null, backgroundScanMinInclinationAngle: Double = 75.0, slowConnectionTimeout: Duration = 5.seconds, useGrayscaleImageForVps: Boolean = false, cameraImageMaxSizeSmallerSide: Int = 720, useJpgImageForVps: Boolean = true, jpgImageCompressionQuality: Int = 70)

Properties

Link copied to clipboard

The threshold value of the distance in meters that is used to determine the reliability of the VPS BE result. If the distance exceeds the threshold value, a new background scan will be scheduled to re-check the result.

Link copied to clipboard

Number of consecutive background scan failures before the scan cooldown timer is reset.

Link copied to clipboard

Minimum device inclination angle required for a background scan to proceed, in degrees.

Link copied to clipboard

Minimum interval between background VPS scans.

Link copied to clipboard

The smaller side of the camera image sent to VPS, in pixels.

Link copied to clipboard

Minimum device inclination angle required for a foreground scan to proceed, in degrees.

Link copied to clipboard

JPEG compression quality for images sent to VPS (0–100).

Link copied to clipboard

Timeout after which an ongoing VPS request is considered a slow connection.

Link copied to clipboard

Whether to capture grayscale images for VPS instead of color.

Link copied to clipboard

Whether to encode camera images as JPEG before sending to VPS.