estimateAge method

void estimateAge(
  1. Portrait portrait
)

Estimates the age of the person. Important: This method requires the FaceAgeEstimator1A model to be loaded.

param portrait The portrait. throws FaceException An error has occurred during Face Library execution.

Implementation

void estimateAge(Portrait portrait) {
  var err = faceSDK.id3FacePortraitProcessor_EstimateAge(_pHandle.value, portrait.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}