FaceIndexer Class

Namespace: id3.Face

Definition

Performs a one-to-many search on a large number of face templates.
class FaceIndexer
class FaceIndexer implements Finalizable
public partial class FaceIndexer
public class FaceIndexer implements AutoCloseable, Serializable
public class FaceIndexer
typedef struct id3FaceIndexer *ID3_FACE_INDEXER;

Usage

faceIndexerInstance = FaceIndexer()
# ...

Explicit destruction

# ...
del faceIndexerInstance
final faceIndexerInstance = sdk.FaceIndexer();
// ...

Explicit destruction

// ...
faceIndexerInstance.dispose()
using (var faceIndexerInstance = new FaceIndexer())
{
   // ...
}

Explicit destruction

var faceIndexerInstance = new FaceIndexer()
// ...
faceIndexerInstance.Dispose()
try (FaceIndexer faceIndexerInstance = new FaceIndexer()) {
// ...
}

Explicit destruction

FaceIndexer faceIndexerInstance = new FaceIndexer();
// ...
faceIndexerInstance.close();
private var faceIndexerInstance: FaceIndexer? = nil
faceIndexerInstance = try FaceIndexer()
ID3_FACE_INDEXER hFaceIndexer{};
int err = id3FaceIndexer_Initialize(&hFaceIndexer);
if (err == ID3_SUCCESS) {
    // ...
    id3FaceIndexer_Dispose(&hFaceIndexer);
}

Properties

Name

Type

Description

format

FaceTemplateFormat

Face template format accepted by this face indexer.

maximumTemplateCount

int

Maximum number of templates that this face indexer can hold.

templateCount

int

Current number of indexed templates.

Static Methods

Name

Description

create

Creates an empty face indexer

fromFile

Imports the face indexer object from a file.

Methods

Name

Description

addTemplate

Adds a template to the Face Indexer.

deleteTemplate

Deletes a template from the face indexer.

getTemplate

Retrieves a template from the face indexer by ID.

resize

Resizes the maximum number of templates that the face indexer can hold.

searchTemplate

Performs a one-to-many search of a face template probe against a previously initialized face indexer and outputs a candidate list.

toFile

Saves the face indexer object to a file.