FaceEncoder.createTemplate Method

Module: FaceEncoder

Definition

Extracts the unique features of a detected face and store them in a FaceTemplate.

Warning

A minimum interocular distance (IOD) of 30 pixels for the detected face is required for this function, below this value it will output an error.

Important

Loading a FaceEncoder model is required to use this function.

FaceTemplate createTemplate(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The generated face template.

Exceptions

An error has occurred during Face Library execution.