.. index:: 
  !PortraitProcessor.trackerMaximumFaceAge Property

.. _id3_face_portrait_processor_tracker_maximum_face_age_class_member:

===============================================================================
PortraitProcessor.trackerMaximumFaceAge Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_class>`

Type: int

Definition
----------

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

.. hint:: Default value is 2. One must adapt this value to its needs in terms of tracker identity memory (in seconds) and measured frame rate on target platform.


.. tab-set::

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

    .. code:: Python

      tracker_maximum_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 trackerMaximumFaceAge => getTrackerMaximumFaceAge();
      set trackerMaximumFaceAge(int value) => setTrackerMaximumFaceAge(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 trackerMaximumFaceAge
      {
          get => GettrackerMaximumFaceAge();
          set => SettrackerMaximumFaceAge(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 getTrackerMaximumFaceAge() throws FaceException
      public void setTrackerMaximumFaceAge(int trackerMaximumFaceAge) 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 trackerMaximumFaceAge: Int
          get {
              return Int(try! getTrackerMaximumFaceAge())
          }
      }


    **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_GetTrackerMaximumFaceAge (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * trackerMaximumFaceAge)
      int id3FacePortraitProcessor_SetTrackerMaximumFaceAge (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int trackerMaximumFaceAge)

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

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

