FacePad.computeDepthBasedScore Method

Module: FacePad

Definition

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.

int computeDepthBasedScore(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process. Must be Grayscale 16 Bits.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The computed PAD score, in the range [0;100].

Exceptions

An error has occurred during Face Library execution.