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
Portraitin The portrait.
Exceptions
An error has occurred during Face Library execution.
void detectPresentationAttack(Portrait portrait)
Parameters
portrait
Portraitin The portrait.
Exceptions
An error has occurred during Face Library execution.
public void DetectPresentationAttack(Portrait portrait)
Parameters
portrait
Portraitin The portrait.
Exceptions
An error has occurred during Face Library execution.
public void detectPresentationAttack(Portrait portrait) throws FaceException
Parameters
portrait
Portraitin The portrait.
Exceptions
An error has occurred during Face Library execution.
public func detectPresentationAttack(portrait: Portrait) throws
Parameters
portrait
Portraitin 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_PROCESSORin Handle to the PortraitProcessor object.hPortrait
ID3_FACE_PORTRAITin The portrait.
Returns