Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FacePad Class

Namespace: id3.Face

## Definition

Detects presentation attacks in still images or video frames.
Python

    class FacePad

Dart

    class FacePad implements Finalizable

C#

    public partial class FacePad

Java

    public class FacePad implements AutoCloseable, Serializable

Swift

    public class FacePad

C

    typedef struct id3FacePad *ID3_FACE_PAD;

## Usage

Python

    facePadInstance = id3face.FacePad()

Explicit destruction

    # ...
    del facePadInstance

Dart

    final facePadInstance = sdk.FacePad();
    // ...

Explicit destruction

    // ...
    facePadInstance.dispose()

C#

    using (var facePadInstance = new FacePad())
    {
       // ...
    }

Explicit destruction

    var facePadInstance = new FacePad()
    // ...
    facePadInstance.Dispose()

Java

    try (FacePad facePadInstance = new FacePad()) {
    // ...
    }

Explicit destruction

    FacePad facePadInstance = new FacePad();
    // ...
    facePadInstance.close();

Swift

    private var facePadInstance: FacePad? = nil
    facePadInstance = try FacePad()

C

    ID3_FACE_PAD hFacePad{};
    int err = id3FacePad_Initialize(&hFacePad);
    if (err == ID3_SUCCESS) {
        // ...
        id3FacePad_Dispose(&hFacePad);
    }

## Properties

Name | Type | Description
--- | --- | ---
attackSupportDetectorConfidenceThreshold | int | Attack support detector confidence threshold, in the range [0;100].

## Methods

Name | Description
--- | ---
computeBlurrinessScore | Computes a blurriness score for a color image.
computeColorBasedScore | Computes the PAD score and confidence of a detected face using only the color image.
computeDepthBasedScore | Computes the PAD score of a detected face using a depth map image.
detectAttackSupport | Detects if an attack support surrounds the detected face.