.. index:: 
  !DetectedFaceList.findDetectedFace Method
  
.. _id3_face_detected_face_list_find_detected_face_class_method:

===============================================================================
DetectedFaceList.findDetectedFace Method
===============================================================================

Module: :ref:`DetectedFaceList<id3_face_detected_face_list_class>`

Definition
----------

Finds a detected face by ID.


.. tab-set::

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

      .. code:: Python

        find_detected_face(self, id: int) -> DetectedFace

      **Parameters**

        .. line-block::

          ``id`` int
          :guilabel:`in` ID of the detected face to find in the list.


      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The found detected face.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        DetectedFace findDetectedFace(int id)

      **Parameters**

        .. line-block::

          ``id`` int
          :guilabel:`in` ID of the detected face to find in the list.


      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The found detected face.

      **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 DetectedFace FindDetectedFace(int id)

      **Parameters**

        .. line-block::

          ``id`` int
          :guilabel:`in` ID of the detected face to find in the list.


      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The found detected face.

      **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 DetectedFace findDetectedFace(int id) throws FaceException

      **Parameters**

        .. line-block::

          ``id`` int
          :guilabel:`in` ID of the detected face to find in the list.


      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The found detected face.

      **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 func findDetectedFace(id: Int32) throws -> DetectedFace

      **Parameters**

        .. line-block::

          ``id`` Int32
          :guilabel:`in` ID of the detected face to find in the list.


      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The found detected face.

      **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 id3DetectedFaceList_FindDetectedFace (
            ID3_DETECTED_FACE_LIST hDetectedFaceList, 
            int id, 
            ID3_DETECTED_FACE hDetectedFace)

      **Parameters**

        .. line-block::

          ``hDetectedFaceList`` :ref:`ID3_DETECTED_FACE_LIST<id3_face_detected_face_list_class>`
          :guilabel:`in` Handle to the DetectedFaceList object.

          ``id`` int
          :guilabel:`in` ID of the detected face to find in the list.

          ``hDetectedFace`` :ref:`ID3_DETECTED_FACE<id3_face_detected_face_class>`
          :guilabel:`out` The found detected face.


      **Returns**

        .. line-block::

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


