LivenessCheckSettings constructor
const
LivenessCheckSettings({
- bool enableBlinkDetection = true,
- int requiredBlinkCount = 3,
- bool enableSmileDetection = true,
- bool enableEyesClosedCheck = true,
- bool showProgress = true,
- bool showErrorMessage = true,
- bool showTryAgainButton = true,
- int maxRetryAttempts = 3,
- Duration processingTimeout = const Duration(seconds: 30),
- double circlePositionY = 0.38,
- Duration? photoCaptureDelay = const Duration(milliseconds: 0),
- int antiSpoofingClearnessThreshold = 800,
- double? eulerAngleThresholdIOS = 5.0,
- double? eulerAngleThresholdAndroid = 6.0,
- double? faceToHeadRatioMinIOS,
- double? faceToHeadRatioMaxIOS,
- double? faceToHeadRatioMinAndroid,
- double? faceToHeadRatioMaxAndroid,
- double? eyeToMouthRatioMin,
- double? mouthPositionRatioMin,
- double? mouthPositionRatioMax,
- double? eyePositionRatioMin,
- double? eyePositionRatioMax,
Creates liveness check settings.
Implementation
const LivenessCheckSettings({
this.enableBlinkDetection = true,
this.requiredBlinkCount = 3,
this.enableSmileDetection = true,
this.enableEyesClosedCheck = true,
this.showProgress = true,
this.autoNavigateOnSuccess = true,
this.showErrorMessage = true,
this.showTryAgainButton = true,
this.maxRetryAttempts = 3,
this.processingTimeout = const Duration(seconds: 30),
this.circlePositionY = 0.38,
this.photoCaptureDelay = const Duration(milliseconds: 0),
this.antiSpoofingClearnessThreshold = 800,
this.eulerAngleThresholdIOS = 5.0,
this.eulerAngleThresholdAndroid = 6.0,
this.faceToHeadRatioMinIOS,
this.faceToHeadRatioMaxIOS,
this.faceToHeadRatioMinAndroid,
this.faceToHeadRatioMaxAndroid,
this.eyeToMouthRatioMin,
this.mouthPositionRatioMin,
this.mouthPositionRatioMax,
this.eyePositionRatioMin,
this.eyePositionRatioMax,
});