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

# FaceIndexer.create Method

Module: FaceIndexer

## Definition

Creates an empty face indexer

Python

    @staticmethod
    create(maximum_template_count: int, format: FaceTemplateFormat) -> FaceIndexer

Parameters

> `maximum_template_count` int
> in Maximum number of templates that this face indexer can hold.
> `format` FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

> FaceIndexer
> The newly created face indexer.

Exceptions

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

Dart

    static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format)

Parameters

> `maximumTemplateCount` int
> in Maximum number of templates that this face indexer can hold.
> `format` FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

> FaceIndexer
> The newly created face indexer.

Exceptions

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

C#

    public static FaceIndexer Create(int maximumTemplateCount, FaceTemplateFormat format)

Parameters

> `maximumTemplateCount` int
> in Maximum number of templates that this face indexer can hold.
> `format` FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

> FaceIndexer
> The newly created face indexer.

Exceptions

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

Java

    public static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format) throws FaceException

Parameters

> `maximumTemplateCount` int
> in Maximum number of templates that this face indexer can hold.
> `format` FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

> FaceIndexer
> The newly created face indexer.

Exceptions

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

Swift

    public static func create(maximumTemplateCount: Int32, format: FaceTemplateFormat) throws -> FaceIndexer

Parameters

> `maximumTemplateCount` Int32
> in Maximum number of templates that this face indexer can hold.
> `format` FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

> FaceIndexer
> The newly created face indexer.

Exceptions

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

C

    int id3FaceIndexer_Create (
        ID3_FACE_INDEXER hFaceIndexer,
        int maximumTemplateCount,
        id3FaceTemplateFormat eFormat)

Parameters

> `hFaceIndexer` ID3_FACE_INDEXER
> in Handle to the FaceIndexer object.
> `maximumTemplateCount` int
> in Maximum number of templates that this face indexer can hold.
> `eFormat` id3FaceTemplateFormat
> in Face template format accepted by this face indexer.

Returns

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