getMaleThreshold method

int getMaleThreshold()

Gets the male gender detection threshold. If the score is higher than this value, the person is probably male. Hint: Default value is 50.

return Male gender detection threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

int getMaleThreshold() {
  Pointer<Int> pMaleThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetMaleThreshold(_pHandle.value, pMaleThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vMaleThreshold = pMaleThreshold.value;
    return vMaleThreshold;
  } finally {
    calloc.free(pMaleThreshold);
  }
}