# FacePad class

Detects presentation attacks in still images or video frames.

Implemented types
  - Finalizable

## Constructors

FacePad()
  Creates a new instance of the FacePad class.
FacePad.fromHandle(Pointer<id3FacePad> handle)
  Creates a new instance of the FacePad class.

## Properties

attackSupportDetectorConfidenceThreshold ↔ int
  Attack support detector confidence threshold, in the range `0;100`. Hint: Default value is 25. Note: Setting a high threshold reduces false attack support detections but can increase the number of undetected attack supports.
  getter/setter pair
handle → Pointer<id3FacePad>
  Gets the native handle. return The native handle.
  no setter
hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

computeBlurrinessScore(Image image, DetectedFace detectedFace) → int
  Computes a blurriness score for a color image. An attack presented on a low resolution support has more chance to be blurred than a bonafide. The maximum recommended value is 20. Important: Loading the model `FaceBlurrinessDetector` is required to use this function.
computeColorBasedScore(Image image, DetectedFace detectedFace) → ColorBasedPadResult
  Computes the PAD score and confidence of a detected face using only the color image. A high score means a high probability for the face to be bona-fide, hence not an attack. The minimum recommended score is 90. A low confidence means that the quality of the image is not sufficient enough to take a decision. The minimum recommended confidence is 70. Warning: A minimum IOD (64 pixels per default) for the detected face is required for this function, below this value it will output an error. Important: Loading the `FaceColorBasedPad` model is required to use this function.
computeDepthBasedScore(Image image, DetectedFace detectedFace) → int
  Computes the PAD score of a detected face using a depth map image. A high score means a high probability for the face to be bona-fide, hence not an attack. The minimum recommended value is 10. Important: Loading the `FaceDepthBasedPad` model is required to use this function.
detectAttackSupport(Image image, DetectedFace detectedFace) → DetectedFaceAttackSupport
  Detects if an attack support surrounds the detected face. The recommended usage is to consider the image to be an attack as soon as an attack support is detected. Important: Loading the `FaceAttackSupportDetector` model is required to use this function.
dispose() → void
  Releases all resources used by this FacePad.
getAttackSupportDetectorConfidenceThreshold() → int
  Gets the attack support detector confidence threshold, in the range (0;100). Hint: Default value is 25. Note: Setting a high threshold reduces false attack support detections but can increase the number of undetected attack supports.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
setAttackSupportDetectorConfidenceThreshold(int attackSupportDetectorConfidenceThreshold) → void
  Sets the attack support detector confidence threshold, in the range (0;100). Hint: Default value is 25. Note: Setting a high threshold reduces false attack support detections but can increase the number of undetected attack supports.
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited