.. index:: 
  !PortraitProcessor.trackerMinimumFaceAge Property

.. _id3_face_portrait_processor_tracker_minimum_face_age_class_member:

===============================================================================
PortraitProcessor.trackerMinimumFaceAge Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_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

      tracker_minimum_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 trackerMinimumFaceAge => getTrackerMinimumFaceAge();
      set trackerMinimumFaceAge(int value) => setTrackerMinimumFaceAge(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 trackerMinimumFaceAge
      {
          get => GettrackerMinimumFaceAge();
          set => SettrackerMinimumFaceAge(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 getTrackerMinimumFaceAge() throws FaceException
      public void setTrackerMinimumFaceAge(int trackerMinimumFaceAge) 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 trackerMinimumFaceAge: Int
          get {
              return Int(try! getTrackerMinimumFaceAge())
          }
      }


    **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 id3FacePortraitProcessor_GetTrackerMinimumFaceAge (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * trackerMinimumFaceAge)
      int id3FacePortraitProcessor_SetTrackerMinimumFaceAge (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int trackerMinimumFaceAge)

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

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

