When facial features are located, you can extract the face from the source image using the FSDK_ExtractFaceImage function.
FSDK_ExtractFaceImage Function
Extracts the located face from an image.
C++ Syntax:
int _FSDKIMPORT_ FSDK_ExtractFaceImage(HImage Image, FSDK_Features FacialFeatures, int Width, int Height, HImage* ExtractedFaceImage, FSDK_Features ResizedFeatures);
Delphi Syntax:
function FSDK_ExtractFaceImage(Image: HImage; FacialFeatures: PFSDK_Features; Width: integer; Height: integer; ExtractedFaceImage: PHImage; ResizedFeatures: PFSDK_Features): integer; cdecl; external 'FaceSDK.dll';
Parameters:
Image – the handle of the image to extract the face from.
FacialFeatures – the pointer to the FSDK_Features structure containing information about facial features.
Width – the width of the extracted face image.
Height – the height of the extracted face image.
ExtractedFaceImage – the pointer to the HImage variable the extracted face will be stored in.
ResizedFeatures – the pointer to the FSDK_Features array for receiving the resized and repositioned (according to the width and height parameters) facial features in the extracted face image.
Return Value:



