.. index:: 
  !Portrait.trackedFace Property

.. _id3_face_portrait_tracked_face_class_member:

===============================================================================
Portrait.trackedFace Property
===============================================================================

Module: :ref:`Portrait<id3_face_portrait_class>`

Type: :ref:`TrackedFace<id3_face_tracked_face_class>`

Definition
----------

Tracked face.


.. tab-set::

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

    .. code:: Python

      tracked_face: TrackedFace


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      TrackedFace get trackedFace => getTrackedFace();


    **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 TrackedFace trackedFace
      {
          get => GettrackedFace();
      }


    **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 TrackedFace getTrackedFace() 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 trackedFace: TrackedFace
          get {
              return try! getTrackedFace()
          }
      }


    **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 id3FacePortrait_GetTrackedFace (ID3_FACE_PORTRAIT hPortrait, ID3_TRACKED_FACE hTrackedFace)

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

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

