cropIcaoPortrait method
- Portrait portrait
Creates an ICAO-compliant portrait image by cropping the source image around the detected face. This method uses the following parameters:
- Portrait aspect ratio
- Portrait eye position ratio
- Portrait IOD ratio
param portrait Source portrait. return The output cropped image. throws FaceException An error has occurred during Face Library execution.
Implementation
Image cropIcaoPortrait(Portrait portrait) {
Image image = Image();
var err = faceSDK.id3FacePortraitProcessor_CropIcaoPortrait(_pHandle.value, portrait.handle, image.handle);
if (err != FaceError.success.value) {
image.dispose();
throw FaceException(err);
}
return image;
}