getMinimumHeadWidthRatio method

int getMinimumHeadWidthRatio()

Gets the value indicating if the image width is conform to the (image width / head width) ratio of 7:5. The head width is defined as the distance between the left and right ears. For ICAO compliance, the value must be in the range 50 to 75. Hint: Default value is 50.

return Value indicating if the image width is conform to the (image width / head width) ratio of 7:5. throws FaceException An error has occurred during Face Library execution.

Implementation

int getMinimumHeadWidthRatio() {
  Pointer<Int> pMinimumHeadWidthRatio = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetMinimumHeadWidthRatio(_pHandle.value, pMinimumHeadWidthRatio);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vMinimumHeadWidthRatio = pMinimumHeadWidthRatio.value;
    return vMinimumHeadWidthRatio;
  } finally {
    calloc.free(pMinimumHeadWidthRatio);
  }
}