FaceAnalyser.computeExpression Method¶
Module: FaceAnalyser
Definition¶
Computes the expression of a detected face.
Important
Loading the FaceExpressionClassifier model is required to use this function.
compute_expression(self, image: Image, detected_face: DetectedFace) -> FaceExpression
Parameters
Returns
The estimated expression of the detected face.
Exceptions
An error has occurred during Face Library execution.
FaceExpression computeExpression(Image image, DetectedFace detectedFace)
Parameters
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
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
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
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
hFaceAnalyserID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImageID3_FACE_IMAGEin Source image to process.hDetectedFaceID3_DETECTED_FACEin Detected face to process.eExpressionid3FaceExpression *out The estimated expression of the detected face.
Returns