PortraitProcessor.enableSmileDetection Property

Module: PortraitProcessor

Type: bool

Definition

Value indicating whether smile detection is enabled.

Important

This option requires the FaceAttributesClassifier2A model to be loaded.

enable_smile_detection: bool

Exceptions

An error has occurred during Face Library execution.
bool get enableSmileDetection => getEnableSmileDetection();
set enableSmileDetection(bool value) => setEnableSmileDetection(value);

Exceptions

An error has occurred during Face Library execution.
public bool enableSmileDetection
{
    get => GetenableSmileDetection();
    set => SetenableSmileDetection(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public boolean getEnableSmileDetection() throws FaceException
public void setEnableSmileDetection(boolean enableSmileDetection) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var enableSmileDetection: Bool
    get {
        return try! getEnableSmileDetection()
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetEnableSmileDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool * enableSmileDetection)
int id3FacePortraitProcessor_SetEnableSmileDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool enableSmileDetection)

Returns

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