getAge method
Gets the estimated age of the subject. -1 if not computed.
return Estimated age of the subject. -1 if not computed. throws FaceException An error has occurred during Face Library execution.
Implementation
int getAge() {
Pointer<Int> pAge = calloc();
try {
var err = faceSDK.id3FacePortrait_GetAge(_pHandle.value, pAge);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vAge = pAge.value;
return vAge;
} finally {
calloc.free(pAge);
}
}