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

# FaceTemplate Class

Namespace: id3.Face

## Definition

Represents a face template.
Python

    class FaceTemplate

Dart

    class FaceTemplate implements Finalizable

C#

    public partial class FaceTemplate

Java

    public class FaceTemplate implements AutoCloseable, Serializable

Swift

    public class FaceTemplate

C

    typedef struct id3FaceTemplate *ID3_FACE_TEMPLATE;

## Usage

Python

    faceTemplateInstance = id3face.FaceTemplate()

Explicit destruction

    # ...
    del faceTemplateInstance

Dart

    final faceTemplateInstance = sdk.FaceTemplate();
    // ...

Explicit destruction

    // ...
    faceTemplateInstance.dispose()

C#

    using (var faceTemplateInstance = new FaceTemplate())
    {
       // ...
    }

Explicit destruction

    var faceTemplateInstance = new FaceTemplate()
    // ...
    faceTemplateInstance.Dispose()

Java

    try (FaceTemplate faceTemplateInstance = new FaceTemplate()) {
    // ...
    }

Explicit destruction

    FaceTemplate faceTemplateInstance = new FaceTemplate();
    // ...
    faceTemplateInstance.close();

Swift

    private var faceTemplateInstance: FaceTemplate? = nil
    faceTemplateInstance = try FaceTemplate()

C

    ID3_FACE_TEMPLATE hFaceTemplate{};
    int err = id3FaceTemplate_Initialize(&hFaceTemplate);
    if (err == ID3_SUCCESS) {
        // ...
        id3FaceTemplate_Dispose(&hFaceTemplate);
    }

## Properties

Name | Type | Description
--- | --- | ---
format | FaceTemplateFormat | Format of the face template.
quality | int | Quality of the face template.

## Static Methods

Name | Description
--- | ---
fromBuffer | Imports the face template object from a buffer.
fromFile | Imports the face template object from a file.

## Methods

Name | Description
--- | ---
clone | Clones the FaceTemplate object.
toBdt | Exports the face template object to a Biometric Data Template (BDT) buffer.
toBit | Exports the face template as a Biometric Information Template (BIT) for enrolment on a smart card equipped with id3 Match-on-Card technology.
toBuffer | Exports the face template object to a buffer.
toFile | Exports the face template object to a file.
update | Updates the face template by combining it with the specified face template.