.. index:: 
  !DetectedFace.landmarks Property

.. _id3_face_detected_face_landmarks_class_member:

===============================================================================
DetectedFace.landmarks Property
===============================================================================

Module: :ref:`DetectedFace<id3_face_detected_face_class>`

Type: :ref:`PointList<id3_face_point_list_class>`

Definition
----------

Landmarks (eyes, nose and mouth corners) of the detected face.


.. tab-set::

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

    .. code:: Python

      landmarks: PointList


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      PointList get landmarks => getLandmarks();
      set landmarks(PointList value) => setLandmarks(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 PointList landmarks
      {
          get => Getlandmarks();
          set => Setlandmarks(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 PointList getLandmarks() throws FaceException
      public void setLandmarks(PointList landmarks) 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 landmarks: PointList
          get {
              return try! getLandmarks()
          }
      }


    **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 id3DetectedFace_GetLandmarks (ID3_DETECTED_FACE hDetectedFace, ID3_FACE_POINT_LIST hLandmarks)
      int id3DetectedFace_SetLandmarks (ID3_DETECTED_FACE hDetectedFace, ID3_FACE_POINT_LIST hLandmarks)

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

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

