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
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
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
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
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
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_ANALYSERin Handle to the FaceAnalyser object.hImage
ID3_FACE_IMAGEin Source image to process.hDetectedFace
ID3_DETECTED_FACEin Detected face to process.age
int *out The estimated age of the detected face.
Returns