PortraitProcessor.smileThreshold Property

Module: PortraitProcessor

Type: int

Definition

Smile threshold.

If the Smile score is above this value, the detected face is definitely smiling.

Hint

Default value is 75.

smile_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get smileThreshold => getSmileThreshold();
set smileThreshold(int value) => setSmileThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int smileThreshold
{
    get => GetsmileThreshold();
    set => SetsmileThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getSmileThreshold() throws FaceException
public void setSmileThreshold(int smileThreshold) throws FaceException

Exceptions

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

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetSmileThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * smileThreshold)
int id3FacePortraitProcessor_SetSmileThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int smileThreshold)

Returns

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