FaceAnalyser.detectOcclusions Method

Module: FaceAnalyser

Definition

Detects the presence of occlusions on top of a detected face.

Important

Loading the FaceOcclusionDetector1A model is required to use this function.

detect_occlusions(self, image: Image, detected_face: DetectedFace) -> FaceOcclusionScores

Parameters

image Image
in Source image to process.

detected_face DetectedFace
in Detected face to process.

Returns

The occlusion scores of the detected face.

Exceptions

An error has occurred during Face Library execution.
FaceOcclusionScores detectOcclusions(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The occlusion scores of the detected face.

Exceptions

An error has occurred during Face Library execution.
public FaceOcclusionScores DetectOcclusions(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The occlusion scores of the detected face.

Exceptions

An error has occurred during Face Library execution.
public FaceOcclusionScores detectOcclusions(Image image, DetectedFace detectedFace) throws FaceException

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The occlusion scores of the detected face.

Exceptions

An error has occurred during Face Library execution.
public func detectOcclusions(image: Image, detectedFace: DetectedFace) throws -> FaceOcclusionScores

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The occlusion scores of the detected face.

Exceptions

An error has occurred during Face Library execution.
int id3FaceAnalyser_DetectOcclusions (
    ID3_FACE_ANALYSER hFaceAnalyser,
    ID3_FACE_IMAGE hImage,
    ID3_DETECTED_FACE hDetectedFace,
    id3FaceOcclusionScores * sScores)

Parameters

hFaceAnalyser ID3_FACE_ANALYSER
in Handle to the FaceAnalyser object.

in Source image to process.

hDetectedFace ID3_DETECTED_FACE
in Detected face to process.

out The occlusion scores of the detected face.

Returns

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