public class FaceIndexer
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FaceIndexer()
Creates a new instance of the FaceIndexer class.
|
FaceIndexer(long handle)
Creates a new instance of the FaceIndexer class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplate(FaceTemplate faceTemplate,
java.lang.String id)
Adds a template to the Face Indexer.
|
void |
close()
Releases all resources used by this FaceIndexer.
|
static FaceIndexer |
create(int maximumTemplateCount,
FaceTemplateFormat format)
Creates an empty face indexer
|
void |
deleteTemplate(java.lang.String id)
Deletes a template from the face indexer.
|
protected void |
finalize()
Finalizer for this class.
|
static FaceIndexer |
fromFile(java.lang.String path)
Imports the face indexer object from a file.
|
FaceTemplateFormat |
getFormat()
Gets the face template format accepted by this face indexer.
|
long |
getHandle()
Gets the native handle.
|
int |
getMaximumTemplateCount()
Gets the maximum number of templates that this face indexer can hold.
|
FaceTemplate |
getTemplate(java.lang.String id)
Retrieves a template from the face indexer by ID.
|
int |
getTemplateCount()
Gets the current number of indexed templates.
|
void |
resize(int maximumCount)
Resizes the maximum number of templates that the face indexer can hold.
|
FaceCandidateList |
searchTemplate(FaceTemplate probe,
int maxCandidates)
Performs a one-to-many search of a face template probe against a previously initialized face indexer and outputs a candidate list.
|
void |
toFile(java.lang.String path)
Saves the face indexer object to a file.
|
public FaceIndexer()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceIndexer(long handle)
throws FaceException
handle - Handle to the FaceIndexer.FaceException - An error has occurred during Face Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public FaceTemplateFormat getFormat() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getMaximumTemplateCount()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getTemplateCount()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void addTemplate(FaceTemplate faceTemplate, java.lang.String id) throws FaceException
faceTemplate - Face template to add to the face indexer.id - ID of the added face template.FaceException - An error has occurred during Face Library execution.public static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format) throws FaceException
maximumTemplateCount - Maximum number of templates that this face indexer can hold.format - Face template format accepted by this face indexer.FaceException - An error has occurred during Face Library execution.public void deleteTemplate(java.lang.String id)
throws FaceException
id - ID of the face template to delete.FaceException - An error has occurred during Face Library execution.public static FaceIndexer fromFile(java.lang.String path) throws FaceException
path - Path to the file to import the face indexer object from.FaceException - An error has occurred during Face Library execution.public FaceTemplate getTemplate(java.lang.String id) throws FaceException
id - ID of the required face template.FaceException - An error has occurred during Face Library execution.public void resize(int maximumCount)
throws FaceException
maximumCount - Maximum number of templates that this face indexer can hold.FaceException - An error has occurred during Face Library execution.public FaceCandidateList searchTemplate(FaceTemplate probe, int maxCandidates) throws FaceException
probe - The face template probe.maxCandidates - Maximum number of candidates in the candidate list.FaceException - An error has occurred during Face Library execution.public void toFile(java.lang.String path)
throws FaceException
path - Path to the file to export the face indexer object to.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face