FaceAnalyser.computeAge Method

Module: FaceAnalyser

Definition

Computes the age of a detected face.

Important

Loading the FaceAgeEstimator1A model is required to use this function.

compute_age(self, image: Image, detected_face: DetectedFace) -> int

Parameters

image Image
in Source image to process.

detected_face DetectedFace
in Detected face to process.

Returns

int
The estimated age of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The estimated age of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The estimated age of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The estimated age of the detected face.

Exceptions

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

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

Int
The estimated age of the detected face.

Exceptions

An error has occurred during Face Library execution.
int id3FaceAnalyser_ComputeAge (
    ID3_FACE_ANALYSER hFaceAnalyser,
    ID3_FACE_IMAGE hImage,
    ID3_DETECTED_FACE hDetectedFace,
    int * age)

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.

age int *
out The estimated age of the detected face.

Returns

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