getCropEyePositionRatio method
Gets the ratio between the vertical eye position and the image height for ICAO portrait cropping. Must be in the range )0;1(. Hint: Default value is 0.45.
return Ratio between the vertical eye position and the image height for ICAO portrait cropping. Must be in the range )0;1(. throws FaceException An error has occurred during Face Library execution.
Implementation
double getCropEyePositionRatio() {
Pointer<Float> pCropEyePositionRatio = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetCropEyePositionRatio(_pHandle.value, pCropEyePositionRatio);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vCropEyePositionRatio = pCropEyePositionRatio.value;
return vCropEyePositionRatio;
} finally {
calloc.free(pCropEyePositionRatio);
}
}