getMaximumHeadHeightRatio method

int getMaximumHeadHeightRatio()

Gets the maximum distance between the base of the chin and the crown is less than 80% of the total height of the image. For ICAO compliance, this distance must be in the range 60 to 90. Hint: Default value is 90.

return Maximum distance between the base of the chin and the crown is less than 80% of the total height of the image. throws FaceException An error has occurred during Face Library execution.

Implementation

int getMaximumHeadHeightRatio() {
  Pointer<Int> pMaximumHeadHeightRatio = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetMaximumHeadHeightRatio(_pHandle.value, pMaximumHeadHeightRatio);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vMaximumHeadHeightRatio = pMaximumHeadHeightRatio.value;
    return vMaximumHeadHeightRatio;
  } finally {
    calloc.free(pMaximumHeadHeightRatio);
  }
}