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

# FaceTracker.minimumTrackedFaceAge Property

Module: FaceTracker

Type: int

## Definition

Minimum number of consecutive detections to reach before creating a tracked face.

Hint

Default value is 1 for FaceDetector4B since the false detection rate is low enough. If using a less accurate detector (such as FaceDetector3C) one might consider increasing a bit this value to avoid false tracks.

Python

    minimum_tracked_face_age: int

Exceptions

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

Dart

    int get minimumTrackedFaceAge => getMinimumTrackedFaceAge();
    set minimumTrackedFaceAge(int value) => setMinimumTrackedFaceAge(value);

Exceptions

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

C#

    public int minimumTrackedFaceAge
    {
        get => GetminimumTrackedFaceAge();
        set => SetminimumTrackedFaceAge(ref value);
    }

Exceptions

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

Java

    public int getMinimumTrackedFaceAge() throws FaceException
    public void setMinimumTrackedFaceAge(int minimumTrackedFaceAge) throws FaceException

Exceptions

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

Swift

    public var minimumTrackedFaceAge: Int
        get {
            return Int(try! getMinimumTrackedFaceAge())
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetMinimumTrackedFaceAge (ID3_FACE_TRACKER hFaceTracker, int * minimumTrackedFaceAge)
    int id3FaceTracker_SetMinimumTrackedFaceAge (ID3_FACE_TRACKER hFaceTracker, int minimumTrackedFaceAge)

Returns

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