Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# PortraitProcessor.padThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Presentation attack detection threshold, from 0 to 100.

Higher values enable more attacks to be detected, but may reduce ease of use.

Hint

Default value 95.

Python

    pad_threshold: int

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int get padThreshold => getPadThreshold();
    set padThreshold(int value) => setPadThreshold(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int padThreshold
    {
        get => GetpadThreshold();
        set => SetpadThreshold(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int getPadThreshold() throws FaceException
    public void setPadThreshold(int padThreshold) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var padThreshold: Int
        get {
            return Int(try! getPadThreshold())
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FacePortraitProcessor_GetPadThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * padThreshold)
    int id3FacePortraitProcessor_SetPadThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int padThreshold)

Returns

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