FaceAnalyser.computeExpression Method

Module: FaceAnalyser

Definition

Computes the expression of a detected face.

Important

Loading the FaceExpressionClassifier1A model is required to use this function.

compute_expression(self, image: Image, detected_face: DetectedFace) -> FaceExpression

Parameters

image Image
in Source image to process.

detected_face DetectedFace
in Detected face to process.

Returns

The estimated expression of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated expression of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated expression of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated expression of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated expression of the detected face.

Exceptions

An error has occurred during Face Library execution.
int id3FaceAnalyser_ComputeExpression (
    ID3_FACE_ANALYSER hFaceAnalyser,
    ID3_FACE_IMAGE hImage,
    ID3_DETECTED_FACE hDetectedFace,
    id3FaceExpression * eExpression)

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 estimated expression of the detected face.

Returns

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