PortraitProcessor.cropIcaoPortrait Method¶
Module: PortraitProcessor
Definition¶
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
crop_icao_portrait(self, portrait: Portrait) -> Image
Parameters
portrait
Portraitin Source portrait.
Returns
The output cropped image.
Exceptions
An error has occurred during Face Library execution.
Image cropIcaoPortrait(Portrait portrait)
Parameters
portrait
Portraitin Source portrait.
Returns
The output cropped image.
Exceptions
An error has occurred during Face Library execution.
public Image CropIcaoPortrait(Portrait portrait)
Parameters
portrait
Portraitin Source portrait.
Returns
The output cropped image.
Exceptions
An error has occurred during Face Library execution.
public Image cropIcaoPortrait(Portrait portrait) throws FaceException
Parameters
portrait
Portraitin Source portrait.
Returns
The output cropped image.
Exceptions
An error has occurred during Face Library execution.
public func cropIcaoPortrait(portrait: Portrait) throws -> Image
Parameters
portrait
Portraitin Source portrait.
Returns
The output cropped image.
Exceptions
An error has occurred during Face Library execution.
int id3FacePortraitProcessor_CropIcaoPortrait (
ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
ID3_FACE_PORTRAIT hPortrait,
ID3_FACE_IMAGE hImage)
Parameters
hPortraitProcessor
ID3_FACE_PORTRAIT_PROCESSORin Handle to the PortraitProcessor object.hPortrait
ID3_FACE_PORTRAITin Source portrait.hImage
ID3_FACE_IMAGEout The output cropped image.
Returns