PortraitProcessor.enablePresentationAttackDetection Property¶
Module: PortraitProcessor
Type: bool
Definition¶
Value indicating whether presentation attack detection using passive methods is enabled.
Important
This option requires the FaceAttackSupportDetector3A
and FaceColorBasedPad2A
models to be loaded.
enable_presentation_attack_detection: bool
Exceptions
An error has occurred during Face Library execution.
bool get enablePresentationAttackDetection => getEnablePresentationAttackDetection();
set enablePresentationAttackDetection(bool value) => setEnablePresentationAttackDetection(value);
Exceptions
An error has occurred during Face Library execution.
public bool enablePresentationAttackDetection
{
get => GetenablePresentationAttackDetection();
set => SetenablePresentationAttackDetection(ref value);
}
Exceptions
An error has occurred during Face Library execution.
public boolean getEnablePresentationAttackDetection() throws FaceException
public void setEnablePresentationAttackDetection(boolean enablePresentationAttackDetection) throws FaceException
Exceptions
An error has occurred during Face Library execution.
public var enablePresentationAttackDetection: Bool
get {
return try! getEnablePresentationAttackDetection()
}
}
Exceptions
An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetEnablePresentationAttackDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool * enablePresentationAttackDetection)
int id3FacePortraitProcessor_SetEnablePresentationAttackDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool enablePresentationAttackDetection)
Returns