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

# FaceCandidate Class

Namespace: id3.Face

## Definition

Represents a candidate in a one-to-many search.
Python

    class FaceCandidate

Dart

    class FaceCandidate implements Finalizable

C#

    public partial class FaceCandidate

Java

    public class FaceCandidate implements AutoCloseable, Serializable

Swift

    public class FaceCandidate

C

    typedef struct id3FaceCandidate *ID3_FACE_CANDIDATE;

## Usage

Python

    faceCandidateInstance = id3face.FaceCandidate()

Explicit destruction

    # ...
    del faceCandidateInstance

Dart

    final faceCandidateInstance = sdk.FaceCandidate();
    // ...

Explicit destruction

    // ...
    faceCandidateInstance.dispose()

C#

    using (var faceCandidateInstance = new FaceCandidate())
    {
       // ...
    }

Explicit destruction

    var faceCandidateInstance = new FaceCandidate()
    // ...
    faceCandidateInstance.Dispose()

Java

    try (FaceCandidate faceCandidateInstance = new FaceCandidate()) {
    // ...
    }

Explicit destruction

    FaceCandidate faceCandidateInstance = new FaceCandidate();
    // ...
    faceCandidateInstance.close();

Swift

    private var faceCandidateInstance: FaceCandidate? = nil
    faceCandidateInstance = try FaceCandidate()

C

    ID3_FACE_CANDIDATE hFaceCandidate{};
    int err = id3FaceCandidate_Initialize(&hFaceCandidate);
    if (err == ID3_SUCCESS) {
        // ...
        id3FaceCandidate_Dispose(&hFaceCandidate);
    }

## Properties

Name | Type | Description
--- | --- | ---
id | string | ID of the most similar face template as defined in the reference face template list used to perform the search.
score | int | Match score between the face probe template and the most similar one in the reference face template list used to perform the search.

## Methods

Name | Description
--- | ---
clone | Clones the FaceCandidate object.