PortraitProcessor.faceDetectionThreshold Property

Module: PortraitProcessor

Type: int

Definition

Specifies the face detection confidence threshold, in the range is [0;100].

Hint

Default value is 50. Setting a high threshold reduces false detection but can increase the number of undetected faces.

face_detection_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get faceDetectionThreshold => getFaceDetectionThreshold();
set faceDetectionThreshold(int value) => setFaceDetectionThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int faceDetectionThreshold
{
    get => GetfaceDetectionThreshold();
    set => SetfaceDetectionThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getFaceDetectionThreshold() throws FaceException
public void setFaceDetectionThreshold(int faceDetectionThreshold) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var faceDetectionThreshold: Int
    get {
        return Int(try! getFaceDetectionThreshold())
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetFaceDetectionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * faceDetectionThreshold)
int id3FacePortraitProcessor_SetFaceDetectionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int faceDetectionThreshold)

Returns

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