get method

FaceTemplate get(
  1. int index
)

Gets an item of the FaceTemplateList object.

param index Index of the FaceTemplate item to get. return FaceTemplate item to get. throws FaceException An error has occurred during Face Library execution.

Implementation

FaceTemplate get(int index) {
  FaceTemplate faceTemplateItem = FaceTemplate();
  var err = faceSDK.id3FaceTemplateList_Get(_pHandle.value, index, faceTemplateItem.handle);
  if (err != FaceError.success.value) {
    faceTemplateItem.dispose();
    throw FaceException(err);
  }
  return faceTemplateItem;
}