FaceAnalyser.computeAge Method¶
Module: FaceAnalyser
Definition¶
Computes the age of a detected face.
Important
Loading the FaceAgeEstimator model is required to use this function.
compute_age(self, image: Image, detected_face: DetectedFace) -> int
Parameters
Returns
intThe estimated age of the detected face.
Exceptions
An error has occurred during Face Library execution.
int computeAge(Image image, DetectedFace detectedFace)
Parameters
Returns
intThe estimated age of the detected face.
Exceptions
An error has occurred during Face Library execution.
public int ComputeAge(Image image, DetectedFace detectedFace)
Parameters
Returns
intThe 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
intThe 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
IntThe 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
hFaceAnalyserID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImageID3_FACE_IMAGEin Source image to process.hDetectedFaceID3_DETECTED_FACEin Detected face to process.ageint *out The estimated age of the detected face.
Returns