Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceAnalyser.computePoseWithLandmarks Method

Module: FaceAnalyser

## Definition

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

Loading the model `FacePoseEstimator1A` is required to use this function.

Python

    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

> FacePose
> The estimated pose of the detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    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

> FacePose
> The estimated pose of the detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    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

> FacePose
> The estimated pose of the detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    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

> FacePose
> The estimated pose of the detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    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

> FacePose
> The estimated pose of the detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    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.
> `hLandmarks` ID3_FACE_POINT_LIST
> in Estimated landmarks of the detected face. Must be computed with the face analyser.
> `sPose` id3FacePose *
> out The estimated pose of the detected face.

Returns

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