getFormat method

FaceTemplateFormat getFormat()

Gets the face template format accepted by this face indexer.

return Face template format accepted by this face indexer. throws FaceException An error has occurred during Face Library execution.

Implementation

FaceTemplateFormat getFormat() {
  Pointer<Int32> pFormat = calloc();
  try {
    var err = faceSDK.id3FaceIndexer_GetFormat(_pHandle.value, pFormat);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vFormat = FaceTemplateFormatX.fromValue(pFormat.value);
    return vFormat;
  } finally {
    calloc.free(pFormat);
  }
}