public class FaceTemplate
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FaceTemplate()
Creates a new instance of the FaceTemplate class.
|
FaceTemplate(long handle)
Creates a new instance of the FaceTemplate class.
|
| Modifier and Type | Method and Description |
|---|---|
FaceTemplate |
clone()
Creates a copy of the FaceTemplate object.
|
void |
close()
Releases all resources used by this FaceTemplate.
|
protected void |
finalize()
Finalizer for this class.
|
static FaceTemplate |
fromBuffer(byte[] data)
Imports the face template object from a buffer.
|
static FaceTemplate |
fromFile(java.lang.String path)
Imports the face template object from a file.
|
FaceTemplateFormat |
getFormat()
Gets the format of the face template.
|
long |
getHandle()
Gets the native handle.
|
int |
getQuality()
Gets the quality of the face template.
|
byte[] |
toBdt()
Exports the face template object to a Biometric Data Template (BDT) buffer.
|
byte[] |
toBit(int threshold,
int referenceDataQualifier)
Exports the face template as a Biometric Information Template (BIT) for enrolment on a smart card equipped with id3 Match-on-Card technology.
|
byte[] |
toBuffer()
Exports the face template object to a buffer.
|
void |
toFile(java.lang.String path)
Exports the face template object to a file.
|
void |
update(FaceTemplate newFaceTemplate)
Updates the face template by combining it with the specified face template.
|
public FaceTemplate()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceTemplate(long handle)
throws FaceException
handle - Handle to the FaceTemplate.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 FaceTemplate clone() throws FaceException
clone in class java.lang.ObjectFaceException - An error has occurred during Face Library execution.public FaceTemplateFormat getFormat() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getQuality()
throws FaceException
FaceException - An error has occurred during Face Library execution.public static FaceTemplate fromBuffer(byte[] data) throws FaceException
data - Buffer to import the face template object from.FaceException - An error has occurred during Face Library execution.public static FaceTemplate fromFile(java.lang.String path) throws FaceException
path - Path to the file to import the face template object from.FaceException - An error has occurred during Face Library execution.public byte[] toBdt()
throws FaceException
FaceException - An error has occurred during Face Library execution.public byte[] toBit(int threshold,
int referenceDataQualifier)
throws FaceException
threshold - The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifier - Reference data qualifier.FaceException - An error has occurred during Face Library execution.public byte[] toBuffer()
throws FaceException
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 template object to.FaceException - An error has occurred during Face Library execution.public void update(FaceTemplate newFaceTemplate) throws FaceException
newFaceTemplate - New face template to combine.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face