setMaximumHeadWidthRatio method

void setMaximumHeadWidthRatio(
  1. int maximumHeadWidthRatio
)

Sets 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 75.

param maximumHeadWidthRatio 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

void setMaximumHeadWidthRatio(int maximumHeadWidthRatio) {
  var err = faceSDK.id3FacePortraitProcessor_SetMaximumHeadWidthRatio(_pHandle.value, maximumHeadWidthRatio);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}