Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceDetector.nmsIouThreshold Property

Module: FaceDetector

Type: int

## Definition

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

Hint

Default value is 40.

Note

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.

Python

    nms_iou_threshold: int

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int get nmsIouThreshold => getNmsIouThreshold();
    set nmsIouThreshold(int value) => setNmsIouThreshold(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int nmsIouThreshold
    {
        get => GetnmsIouThreshold();
        set => SetnmsIouThreshold(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int getNmsIouThreshold() throws FaceException
    public void setNmsIouThreshold(int nmsIouThreshold) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var nmsIouThreshold: Int
        get {
            return Int(try! getNmsIouThreshold())
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceDetector_GetNmsIouThreshold (ID3_FACE_DETECTOR hFaceDetector, int * nmsIouThreshold)
    int id3FaceDetector_SetNmsIouThreshold (ID3_FACE_DETECTOR hFaceDetector, int nmsIouThreshold)

Returns

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