PortraitProcessor.enableOcclusionDetection Property

Module: PortraitProcessor

Type: bool

Definition

Value indicating whether occlusion detection is enabled.

Important

This option requires the FaceOcclusionDetector2A model to be loaded.

enable_occlusion_detection: bool

Exceptions

An error has occurred during Face Library execution.
bool get enableOcclusionDetection => getEnableOcclusionDetection();
set enableOcclusionDetection(bool value) => setEnableOcclusionDetection(value);

Exceptions

An error has occurred during Face Library execution.
public bool enableOcclusionDetection
{
    get => GetenableOcclusionDetection();
    set => SetenableOcclusionDetection(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public boolean getEnableOcclusionDetection() throws FaceException
public void setEnableOcclusionDetection(boolean enableOcclusionDetection) throws FaceException

Exceptions

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

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetEnableOcclusionDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool * enableOcclusionDetection)
int id3FacePortraitProcessor_SetEnableOcclusionDetection (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, bool enableOcclusionDetection)

Returns

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