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

# FaceTemplateDict.add Method

Module: FaceTemplateDict

## Definition

Adds an item to the FaceTemplateDict object.

Python

    add(self, key: str, face_template_item: FaceTemplate) -> None

Parameters

> `key` str
> in Unique key of the FaceTemplate item to add.
> `face_template_item` FaceTemplate
> in FaceTemplate item to add.

Exceptions

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

Dart

    void add(String? key, FaceTemplate faceTemplateItem)

Parameters

> `key` String
> in Unique key of the FaceTemplate item to add.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to add.

Exceptions

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

C#

    public void Add(string key, FaceTemplate faceTemplateItem)

Parameters

> `key` string
> in Unique key of the FaceTemplate item to add.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to add.

Exceptions

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

Java

    public void add(String key, FaceTemplate faceTemplateItem) throws FaceException

Parameters

> `key` String
> in Unique key of the FaceTemplate item to add.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to add.

Exceptions

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

Swift

    public func add(key: String, faceTemplateItem: FaceTemplate) throws

Parameters

> `key` String
> in Unique key of the FaceTemplate item to add.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to add.

Exceptions

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

C

    int id3FaceTemplateDict_Add (
        ID3_FACE_TEMPLATE_DICT hFaceTemplateDict,
        const char * key,
        ID3_FACE_TEMPLATE hFaceTemplateItem)

Parameters

> `hFaceTemplateDict` ID3_FACE_TEMPLATE_DICT
> in Handle to the FaceTemplateDict object.
> `key` const char *
> in Unique key of the FaceTemplate item to add.
> `hFaceTemplateItem` ID3_FACE_TEMPLATE
> in FaceTemplate item to add.

Returns

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