getMaximumHeadWidthRatio method
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 75.
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 getMaximumHeadWidthRatio() {
Pointer<Int> pMaximumHeadWidthRatio = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetMaximumHeadWidthRatio(_pHandle.value, pMaximumHeadWidthRatio);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vMaximumHeadWidthRatio = pMaximumHeadWidthRatio.value;
return vMaximumHeadWidthRatio;
} finally {
calloc.free(pMaximumHeadWidthRatio);
}
}