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

# FaceAnalyser.computePose Method

Module: FaceAnalyser

## Definition

Computes the pose of a detected face.

Important

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

Python

    compute_pose(self, detected_face: DetectedFace) -> FacePose

Parameters

> `detected_face` DetectedFace
> in Detected face to process.

Returns

> FacePose
> The estimated pose of the detected face.

Exceptions

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

Dart

    FacePose computePose(DetectedFace detectedFace)

Parameters

> `detectedFace` DetectedFace
> in Detected face to process.

Returns

> FacePose
> The estimated pose of the detected face.

Exceptions

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

C#

    public FacePose ComputePose(DetectedFace detectedFace)

Parameters

> `detectedFace` DetectedFace
> in Detected face to process.

Returns

> FacePose
> The estimated pose of the detected face.

Exceptions

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

Java

    public FacePose computePose(DetectedFace detectedFace) throws FaceException

Parameters

> `detectedFace` DetectedFace
> in Detected face to process.

Returns

> FacePose
> The estimated pose of the detected face.

Exceptions

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

Swift

    public func computePose(detectedFace: DetectedFace) throws -> FacePose

Parameters

> `detectedFace` DetectedFace
> in Detected face to process.

Returns

> FacePose
> The estimated pose of the detected face.

Exceptions

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

C

    int id3FaceAnalyser_ComputePose (
        ID3_FACE_ANALYSER hFaceAnalyser,
        ID3_DETECTED_FACE hDetectedFace,
        id3FacePose * sPose)

Parameters

> `hFaceAnalyser` ID3_FACE_ANALYSER
> in Handle to the FaceAnalyser object.
> `hDetectedFace` ID3_DETECTED_FACE
> in Detected face to process.
> `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.