PortraitProcessor.enableHatDetection Property

Module: PortraitProcessor

Type: bool

Definition

Value indicating whether hat detection is enabled.

Important

This option requires the FaceAttributesClassifier2A model to be loaded.

enable_hat_detection: bool

Exceptions

An error has occurred during Face Library execution.
bool get enableHatDetection => getEnableHatDetection();
set enableHatDetection(bool value) => setEnableHatDetection(value);

Exceptions

An error has occurred during Face Library execution.
public bool enableHatDetection
{
    get => GetenableHatDetection();
    set => SetenableHatDetection(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public boolean getEnableHatDetection() throws FaceException
public void setEnableHatDetection(boolean enableHatDetection) throws FaceException

Exceptions

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

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetEnableHatDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool * enableHatDetection)
int id3FacePortraitProcessor_SetEnableHatDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool enableHatDetection)

Returns

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