.. index:: 
  !FaceTracker.minimumTrackedFaceAge Property

.. _id3_face_face_tracker_minimum_tracked_face_age_class_member:

===============================================================================
FaceTracker.minimumTrackedFaceAge Property
===============================================================================

Module: :ref:`FaceTracker<id3_face_face_tracker_class>`

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.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      minimum_tracked_face_age: int


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

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

    **Returns**
   
      .. line-block::

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

