.. index:: 
  !DetectedFace.clone Method
  
.. _id3_face_detected_face_clone_class_method:

===============================================================================
DetectedFace.clone Method
===============================================================================

Module: :ref:`DetectedFace<id3_face_detected_face_class>`

Definition
----------

Clones the DetectedFace object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> DetectedFace

      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The newly created 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 clone()

      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The newly created 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 Clone()

      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The newly created 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 clone() throws FaceException

      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The newly created 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 clone() throws -> DetectedFace

      **Returns**

        .. line-block::

          :ref:`DetectedFace<id3_face_detected_face_class>`
          The newly created 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 id3DetectedFace_CopyTo (
            ID3_DETECTED_FACE hDetectedFace, 
            ID3_DETECTED_FACE hDetectedFaceDst)

      **Parameters**

        .. line-block::

          ``hDetectedFace`` :ref:`ID3_DETECTED_FACE<id3_face_detected_face_class>`
          :guilabel:`in` Handle to the DetectedFace object.

          ``hDetectedFaceDst`` :ref:`ID3_DETECTED_FACE<id3_face_detected_face_class>`
          :guilabel:`out` The newly created 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.


