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

# FaceMatcher Class

Namespace: id3.Face

## Definition

Compares two face templates and searches for a face template in a list.
Python

    class FaceMatcher

Dart

    class FaceMatcher implements Finalizable

C#

    public partial class FaceMatcher

Java

    public class FaceMatcher implements AutoCloseable, Serializable

Swift

    public class FaceMatcher

C

    typedef struct id3FaceMatcher *ID3_FACE_MATCHER;

## Usage

Python

    faceMatcherInstance = id3face.FaceMatcher()

Explicit destruction

    # ...
    del faceMatcherInstance

Dart

    final faceMatcherInstance = sdk.FaceMatcher();
    // ...

Explicit destruction

    // ...
    faceMatcherInstance.dispose()

C#

    using (var faceMatcherInstance = new FaceMatcher())
    {
       // ...
    }

Explicit destruction

    var faceMatcherInstance = new FaceMatcher()
    // ...
    faceMatcherInstance.Dispose()

Java

    try (FaceMatcher faceMatcherInstance = new FaceMatcher()) {
    // ...
    }

Explicit destruction

    FaceMatcher faceMatcherInstance = new FaceMatcher();
    // ...
    faceMatcherInstance.close();

Swift

    private var faceMatcherInstance: FaceMatcher? = nil
    faceMatcherInstance = try FaceMatcher()

C

    ID3_FACE_MATCHER hFaceMatcher{};
    int err = id3FaceMatcher_Initialize(&hFaceMatcher);
    if (err == ID3_SUCCESS) {
        // ...
        id3FaceMatcher_Dispose(&hFaceMatcher);
    }

## Methods

Name | Description
--- | ---
compareTemplateLists | Compares two template lists and outputs a comparison score.
compareTemplates | Compares two templates and outputs a comparison score.
searchTemplate | Performs a one-to-many search of a biometric probe against a previously initialized dictionary of biometric references and outputs a candidate list.