PortraitProcessor.detectPresentationAttack Method

Module: PortraitProcessor

Definition

Detects a possible presentation attack.

Important

This method requires the FaceColorBasedPad models to be loaded.

detect_presentation_attack(self, portrait: Portrait) -> None

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
void detectPresentationAttack(Portrait portrait)

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public void DetectPresentationAttack(Portrait portrait)

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public void detectPresentationAttack(Portrait portrait) throws FaceException

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public func detectPresentationAttack(portrait: Portrait) throws

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_DetectPresentationAttack (
    ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
    ID3_FACE_PORTRAIT hPortrait)

Parameters

hPortraitProcessor ID3_FACE_PORTRAIT_PROCESSOR
in Handle to the PortraitProcessor object.

in The portrait.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.