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

# FaceTracker.confidenceThreshold Property

Module: FaceTracker

Type: int

## Definition

Confidence threshold, in the range [0;100].

Hint

Default value is 50.

Note

Setting a high threshold reduces false detection but can increase the number of undetected faces.

Python

    confidence_threshold: int

Exceptions

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

Dart

    int get confidenceThreshold => getConfidenceThreshold();
    set confidenceThreshold(int value) => setConfidenceThreshold(value);

Exceptions

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

C#

    public int confidenceThreshold
    {
        get => GetconfidenceThreshold();
        set => SetconfidenceThreshold(ref value);
    }

Exceptions

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

Java

    public int getConfidenceThreshold() throws FaceException
    public void setConfidenceThreshold(int confidenceThreshold) throws FaceException

Exceptions

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

Swift

    public var confidenceThreshold: Int
        get {
            return Int(try! getConfidenceThreshold())
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetConfidenceThreshold (ID3_FACE_TRACKER hFaceTracker, int * confidenceThreshold)
    int id3FaceTracker_SetConfidenceThreshold (ID3_FACE_TRACKER hFaceTracker, int confidenceThreshold)

Returns

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