.. index:: 
  !FaceTracker.nmsIouThreshold Property

.. _id3_face_face_tracker_nms_iou_threshold_class_member:

===============================================================================
FaceTracker.nmsIouThreshold Property
===============================================================================

Module: :ref:`FaceTracker<id3_face_face_tracker_class>`

Type: int

Definition
----------

Non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].

.. hint:: Default value is 40. Setting a high threshold allows to detect more overlapping faces which can be useful in a multi-face scenario. On the contrary, in a portrait scenario, a low NMS IOU threshold should be preferred.


.. tab-set::

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

    .. code:: Python

      nms_iou_threshold: int


    **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 get nmsIouThreshold => getNmsIouThreshold();
      set nmsIouThreshold(int value) => setNmsIouThreshold(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 int nmsIouThreshold
      {
          get => GetnmsIouThreshold();
          set => SetnmsIouThreshold(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 int getNmsIouThreshold() throws FaceException
      public void setNmsIouThreshold(int nmsIouThreshold) 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 nmsIouThreshold: Int
          get {
              return Int(try! getNmsIouThreshold())
          }
      }


    **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 id3FaceTracker_GetNmsIouThreshold (ID3_FACE_TRACKER hFaceTracker, int * nmsIouThreshold)
      int id3FaceTracker_SetNmsIouThreshold (ID3_FACE_TRACKER hFaceTracker, int nmsIouThreshold)

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

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

