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 |
---|---|---|
int |
Attack support detector confidence threshold, in the range [0;100]. |
Methods¶
Name |
Description |
---|---|
Computes a blurriness score for a color image. |
|
Computes the PAD score and confidence of a detected face using only the color image. |
|
Computes the PAD score of a detected face using a depth map image. |
|
Detects if an attack support surrounds the detected face. |