.. index:: 
  !PortraitProcessor.trackerNmsIouThreshold Property

.. _id3_face_portrait_processor_tracker_nms_iou_threshold_class_member:

===============================================================================
PortraitProcessor.trackerNmsIouThreshold Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_class>`

Type: int

Definition
----------

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

.. hint:: Default value is 0. 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

      tracker_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 trackerNmsIouThreshold => getTrackerNmsIouThreshold();
      set trackerNmsIouThreshold(int value) => setTrackerNmsIouThreshold(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 trackerNmsIouThreshold
      {
          get => GettrackerNmsIouThreshold();
          set => SettrackerNmsIouThreshold(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 getTrackerNmsIouThreshold() throws FaceException
      public void setTrackerNmsIouThreshold(int trackerNmsIouThreshold) 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 trackerNmsIouThreshold: Int
          get {
              return Int(try! getTrackerNmsIouThreshold())
          }
      }


    **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 id3FacePortraitProcessor_GetTrackerNmsIouThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * trackerNmsIouThreshold)
      int id3FacePortraitProcessor_SetTrackerNmsIouThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int trackerNmsIouThreshold)

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

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

