SizeTooSmallValidator
class SizeTooSmallValidator( minEdgeLengthToImageShorterSideRatioThreshold: Double = DEFAULT_THRESHOLD_MIN_EDGE_LENGTH_TO_IMAGE_SHORTER_SIDE_RATIO) : DocumentAutoCaptureDetectionValidator
Too small size validation.
Parameters
minEdgeLengthToImageShorterSideRatioThreshold
Minimum ratio of the document shortest edge length to image shorter side threshold. Value in interval [0.0, 1.0]
. Default value is 0.43
.
Throws
If value is out of the interval.
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(documentAutoCaptureFrameParameters: DocumentAutoCaptureFrameParameters): Boolean
Validate auto capture frame parameters.