FacePad Class

Namespace: id3.Face

Definition

Detects presentation attacks in still images or video frames.
class FacePad
class FacePad implements Finalizable
public partial class FacePad
public class FacePad implements AutoCloseable, Serializable
public class FacePad
typedef struct id3FacePad *ID3_FACE_PAD;

Usage

facePadInstance = id3face.FacePad()

Explicit destruction

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

Explicit destruction

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

Explicit destruction

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

Explicit destruction

FacePad facePadInstance = new FacePad();
// ...
facePadInstance.close();
private var facePadInstance: FacePad? = nil
facePadInstance = try FacePad()
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.