Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceIndexer.getTemplate Method

Module: FaceIndexer

## Definition

Retrieves a template from the face indexer by ID.

Python

    get_template(self, id: str) -> FaceTemplate

Parameters

> `id` str
> in ID of the required face template.

Returns

> FaceTemplate
> The face template.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    FaceTemplate getTemplate(String? id)

Parameters

> `id` String
> in ID of the required face template.

Returns

> FaceTemplate
> The face template.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public FaceTemplate GetTemplate(string id)

Parameters

> `id` string
> in ID of the required face template.

Returns

> FaceTemplate
> The face template.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public FaceTemplate getTemplate(String id) throws FaceException

Parameters

> `id` String
> in ID of the required face template.

Returns

> FaceTemplate
> The face template.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func getTemplate(id: String) throws -> FaceTemplate

Parameters

> `id` String
> in ID of the required face template.

Returns

> FaceTemplate
> The face template.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceIndexer_GetTemplate (
        ID3_FACE_INDEXER hFaceIndexer,
        const char * id,
        ID3_FACE_TEMPLATE hFaceTemplate)

Parameters

> `hFaceIndexer` ID3_FACE_INDEXER
> in Handle to the FaceIndexer object.
> `id` const char *
> in ID of the required face template.
> `hFaceTemplate` ID3_FACE_TEMPLATE
> out The face template.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.