FaceAnalyser.computePoseWithLandmarks Method

Module: FaceAnalyser

Definition

Computes the pose of a detected face using the specified 68-point landmarks.

Loading the model id3FaceModel_FacePoseEstimator1A is required to use this function.

compute_pose_with_landmarks(self, detected_face: DetectedFace, landmarks: PointList) -> FacePose

Parameters

detected_face DetectedFace
in Detected face to process.

landmarks PointList
in Estimated landmarks of the detected face. Must be computed with the face analyser.

Returns

The estimated pose of the detected face.

Exceptions

An error has occurred during Face Library execution.
FacePose computePoseWithLandmarks(DetectedFace detectedFace, PointList landmarks)

Parameters

detectedFace DetectedFace
in Detected face to process.

landmarks PointList
in Estimated landmarks of the detected face. Must be computed with the face analyser.

Returns

The estimated pose of the detected face.

Exceptions

An error has occurred during Face Library execution.
public FacePose ComputePoseWithLandmarks(DetectedFace detectedFace, PointList landmarks)

Parameters

detectedFace DetectedFace
in Detected face to process.

landmarks PointList
in Estimated landmarks of the detected face. Must be computed with the face analyser.

Returns

The estimated pose of the detected face.

Exceptions

An error has occurred during Face Library execution.
public FacePose computePoseWithLandmarks(DetectedFace detectedFace, PointList landmarks) throws FaceException

Parameters

detectedFace DetectedFace
in Detected face to process.

landmarks PointList
in Estimated landmarks of the detected face. Must be computed with the face analyser.

Returns

The estimated pose of the detected face.

Exceptions

An error has occurred during Face Library execution.
public func computePoseWithLandmarks(detectedFace: DetectedFace, landmarks: PointList) throws -> FacePose

Parameters

detectedFace DetectedFace
in Detected face to process.

landmarks PointList
in Estimated landmarks of the detected face. Must be computed with the face analyser.

Returns

The estimated pose of the detected face.

Exceptions

An error has occurred during Face Library execution.
int id3FaceAnalyser_ComputePoseWithLandmarks (
    ID3_FACE_ANALYSER hFaceAnalyser,
    ID3_DETECTED_FACE hDetectedFace,
    ID3_FACE_POINT_LIST hLandmarks,
    id3FacePose * sPose)

Parameters

hFaceAnalyser ID3_FACE_ANALYSER
in Handle to the FaceAnalyser object.

hDetectedFace ID3_DETECTED_FACE
in Detected face to process.

in Estimated landmarks of the detected face. Must be computed with the face analyser.

out The estimated pose of the detected face.

Returns

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