FaceAnalyser.computeLandmarks Method

Module: FaceAnalyser

Definition

Computes 68 landmarks of a detected face.

Important

Loading the FaceLandmarksEstimator model is required to use this function.

compute_landmarks(self, image: Image, detected_face: DetectedFace) -> PointList

Parameters

image Image
in Source image to process.

detected_face DetectedFace
in Detected face to process.

Returns

The estimated landmarks of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated landmarks of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated landmarks of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated landmarks of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The estimated landmarks of the detected face.

Exceptions

An error has occurred during Face Library execution.
int id3FaceAnalyser_ComputeLandmarks (
    ID3_FACE_ANALYSER hFaceAnalyser,
    ID3_FACE_IMAGE hImage,
    ID3_DETECTED_FACE hDetectedFace,
    ID3_FACE_POINT_LIST hLandmarks)

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

Returns

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