SharpnessTooLowValidator

class SharpnessTooLowValidator(threshold: Double = DEFAULT_THRESHOLD) : FaceAutoCaptureDetectionValidator

Too low sharpness validation.

Parameters

threshold

Value in interval [0.0, 1.0]. Default value is 0.3.

Throws

If value is out of the interval.

To use this validator also following validators must be applied:

Constructors

Link copied to clipboard
fun SharpnessTooLowValidator(threshold: Double = DEFAULT_THRESHOLD)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun validate(faceAutoCaptureFrameParameters: FaceAutoCaptureFrameParameters): Boolean

Validate auto capture frame parameters.

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.