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

# FacePad.attackSupportDetectorConfidenceThreshold Property

Module: FacePad

Type: int

## Definition

Attack support detector confidence threshold, in the range [0;100].

Hint

Default value is 25.

Note

Setting a high threshold reduces false attack support detections but can increase the number of undetected attack supports.

Python

    attack_support_detector_confidence_threshold: int

Exceptions

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

Dart

    int get attackSupportDetectorConfidenceThreshold => getAttackSupportDetectorConfidenceThreshold();
    set attackSupportDetectorConfidenceThreshold(int value) => setAttackSupportDetectorConfidenceThreshold(value);

Exceptions

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

C#

    public int attackSupportDetectorConfidenceThreshold
    {
        get => GetattackSupportDetectorConfidenceThreshold();
        set => SetattackSupportDetectorConfidenceThreshold(ref value);
    }

Exceptions

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

Java

    public int getAttackSupportDetectorConfidenceThreshold() throws FaceException
    public void setAttackSupportDetectorConfidenceThreshold(int attackSupportDetectorConfidenceThreshold) throws FaceException

Exceptions

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

Swift

    public var attackSupportDetectorConfidenceThreshold: Int
        get {
            return Int(try! getAttackSupportDetectorConfidenceThreshold())
        }
    }

Exceptions

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

C

    int id3FacePad_GetAttackSupportDetectorConfidenceThreshold (ID3_FACE_PAD hFacePad, int * attackSupportDetectorConfidenceThreshold)
    int id3FacePad_SetAttackSupportDetectorConfidenceThreshold (ID3_FACE_PAD hFacePad, int attackSupportDetectorConfidenceThreshold)

Returns

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