DevicePitchTooHighValidator

class DevicePitchTooHighValidator(maxAngleThreshold: Float = DEFAULT_MAX_ANGLE_THRESHOLD) : FaceAutoCaptureFrameParametersValidator

Too high device pitch angle.

Parameters

maxAngleThreshold

Maximum angle threshold. Value in interval [0.0, 90.0]. Default value is 30.0.

Throws

If value is out of the interval.

Constructors

Link copied to clipboard
constructor(maxAngleThreshold: Float = DEFAULT_MAX_ANGLE_THRESHOLD)

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.

Functions

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

Validate auto capture frame parameters.