PortraitProcessor.cropPortrait Method¶
Module: PortraitProcessor
Definition¶
Creates a portrait image by cropping the source image around the detected face.
crop_portrait(self, portrait: Portrait) -> Image
Parameters
portraitPortraitin The portrait to extract the face from.
Returns
The output cropped image of the face.
Exceptions
An error has occurred during Face Library execution.
Image cropPortrait(Portrait portrait)
Parameters
portraitPortraitin The portrait to extract the face from.
Returns
The output cropped image of the face.
Exceptions
An error has occurred during Face Library execution.
public Image CropPortrait(Portrait portrait)
Parameters
portraitPortraitin The portrait to extract the face from.
Returns
The output cropped image of the face.
Exceptions
An error has occurred during Face Library execution.
public Image cropPortrait(Portrait portrait) throws FaceException
Parameters
portraitPortraitin The portrait to extract the face from.
Returns
The output cropped image of the face.
Exceptions
An error has occurred during Face Library execution.
public func cropPortrait(portrait: Portrait) throws -> Image
Parameters
portraitPortraitin The portrait to extract the face from.
Returns
The output cropped image of the face.
Exceptions
An error has occurred during Face Library execution.
int id3FacePortraitProcessor_CropPortrait (
ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
ID3_FACE_PORTRAIT hPortrait,
ID3_FACE_IMAGE hImage)
Parameters
hPortraitProcessorID3_FACE_PORTRAIT_PROCESSORin Handle to the PortraitProcessor object.hPortraitID3_FACE_PORTRAITin The portrait to extract the face from.hImageID3_FACE_IMAGEout The output cropped image of the face.
Returns