LivenessCheckSettings constructor

const LivenessCheckSettings({
  1. bool enableBlinkDetection = true,
  2. int requiredBlinkCount = 3,
  3. bool enableSmileDetection = true,
  4. bool enableEyesClosedCheck = true,
  5. bool showProgress = true,
  6. bool autoNavigateOnSuccess = true,
  7. bool showErrorMessage = true,
  8. bool showTryAgainButton = true,
  9. int maxRetryAttempts = 3,
  10. Duration processingTimeout = const Duration(seconds: 30),
  11. double circlePositionY = 0.38,
  12. Duration? photoCaptureDelay = const Duration(milliseconds: 0),
  13. int antiSpoofingClearnessThreshold = 800,
  14. double? eulerAngleThresholdIOS = 5.0,
  15. double? eulerAngleThresholdAndroid = 6.0,
  16. double? faceToHeadRatioMinIOS,
  17. double? faceToHeadRatioMaxIOS,
  18. double? faceToHeadRatioMinAndroid,
  19. double? faceToHeadRatioMaxAndroid,
  20. double? eyeToMouthRatioMin,
  21. double? mouthPositionRatioMin,
  22. double? mouthPositionRatioMax,
  23. double? eyePositionRatioMin,
  24. 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,
});