.. index:: 
  !TrackedFace.getInterocularDistance Method
  
.. _id3_face_tracked_face_get_interocular_distance_class_method:

===============================================================================
TrackedFace.getInterocularDistance Method
===============================================================================

Module: :ref:`TrackedFace<id3_face_tracked_face_class>`

Definition
----------

Gets the distance between the eyes (IOD) of the detected face in pixels.


.. tab-set::

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

      .. code:: Python

        get_interocular_distance(self) -> int

      **Returns**

        .. line-block::

          ``int``
          The computed interocular distance (IOD) in pixels.

      **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 getInterocularDistance()

      **Returns**

        .. line-block::

          ``int``
          The computed interocular distance (IOD) in pixels.

      **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 GetInterocularDistance()

      **Returns**

        .. line-block::

          ``int``
          The computed interocular distance (IOD) in pixels.

      **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 getInterocularDistance() throws FaceException

      **Returns**

        .. line-block::

          ``int``
          The computed interocular distance (IOD) in pixels.

      **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 getInterocularDistance() throws -> Int32

      **Returns**

        .. line-block::

          ``Int``
          The computed interocular distance (IOD) in pixels.

      **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 id3TrackedFace_GetInterocularDistance (
            ID3_TRACKED_FACE hTrackedFace, 
            int * iod)

      **Parameters**

        .. line-block::

          ``hTrackedFace`` :ref:`ID3_TRACKED_FACE<id3_face_tracked_face_class>`
          :guilabel:`in` Handle to the TrackedFace object.

          ``iod`` int *
          :guilabel:`out` The computed interocular distance (IOD) in pixels.


      **Returns**

        .. line-block::

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


