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

# FaceTracker.maximumTrackedFaceAge Property

Module: FaceTracker

Type: int

## Definition

Maximum number of consecutive non-detections to reach before deleting a tracked face.

Hint

Default value is 30 which corresponds to 2s at a frame rate of 15 FPS. One must adapt this value to its needs in terms of tracker identity memory (in seconds) and measured frame rate on target platform.

Python

    maximum_tracked_face_age: int

Exceptions

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

Dart

    int get maximumTrackedFaceAge => getMaximumTrackedFaceAge();
    set maximumTrackedFaceAge(int value) => setMaximumTrackedFaceAge(value);

Exceptions

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

C#

    public int maximumTrackedFaceAge
    {
        get => GetmaximumTrackedFaceAge();
        set => SetmaximumTrackedFaceAge(ref value);
    }

Exceptions

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

Java

    public int getMaximumTrackedFaceAge() throws FaceException
    public void setMaximumTrackedFaceAge(int maximumTrackedFaceAge) throws FaceException

Exceptions

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

Swift

    public var maximumTrackedFaceAge: Int
        get {
            return Int(try! getMaximumTrackedFaceAge())
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetMaximumTrackedFaceAge (ID3_FACE_TRACKER hFaceTracker, int * maximumTrackedFaceAge)
    int id3FaceTracker_SetMaximumTrackedFaceAge (ID3_FACE_TRACKER hFaceTracker, int maximumTrackedFaceAge)

Returns

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