SizeTooSmallValidator

class SizeTooSmallValidator(minEdgeLengthToImageShorterSideRatioThreshold: Double = DEFAULT_THRESHOLD_MIN_EDGE_LENGTH_TO_IMAGE_SHORTER_SIDE_RATIO) : PalmAutoCaptureDetectionValidator

Too small size validation.

Parameters

minEdgeLengthToImageShorterSideRatioThreshold

Minimum ratio of the palm shortest edge length to image shorter side threshold. Value greater than or equal to 0.0. Default value is 0.4.

Throws

If the value is less than 0.0.

Constructors

Link copied to clipboard
fun SizeTooSmallValidator(minEdgeLengthToImageShorterSideRatioThreshold: Double = DEFAULT_THRESHOLD_MIN_EDGE_LENGTH_TO_IMAGE_SHORTER_SIDE_RATIO)

Functions

Link copied to clipboard
open override fun validate(palmAutoCaptureFrameParameters: PalmAutoCaptureFrameParameters): Boolean

Validate detected palm.

Properties

Link copied to clipboard
open override val dependencyIdentifiers: Set<String>

Set of validator identifiers which represents a set of dependencies for this validator.

Link copied to clipboard
open override val identifier: String

String identifier of the validator.