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

# FaceTracker.matchThreshold Property

Module: FaceTracker

Type: int

## Definition

Minimum match score to reach to preserve the ID of a tracked face between frame ‘t-1’ and frame ‘t’.

Hint

Default value is 3000 which corresponds to a False Match Rate of 1/1000.

Python

    match_threshold: int

Exceptions

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

Dart

    int get matchThreshold => getMatchThreshold();
    set matchThreshold(int value) => setMatchThreshold(value);

Exceptions

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

C#

    public int matchThreshold
    {
        get => GetmatchThreshold();
        set => SetmatchThreshold(ref value);
    }

Exceptions

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

Java

    public int getMatchThreshold() throws FaceException
    public void setMatchThreshold(int matchThreshold) throws FaceException

Exceptions

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

Swift

    public var matchThreshold: Int
        get {
            return Int(try! getMatchThreshold())
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetMatchThreshold (ID3_FACE_TRACKER hFaceTracker, int * matchThreshold)
    int id3FaceTracker_SetMatchThreshold (ID3_FACE_TRACKER hFaceTracker, int matchThreshold)

Returns

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