public class FaceEncoder
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FaceEncoder()
Creates a new instance of the FaceEncoder class.
|
FaceEncoder(long handle)
Creates a new instance of the FaceEncoder class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this FaceEncoder.
|
int |
computeQuality(Image image,
DetectedFace detectedFace)
Computes the quality of a detected face.
|
FaceTemplate |
createTemplate(Image image,
DetectedFace detectedFace)
Extracts the unique features of a detected face and store them in a FaceTemplate.
|
protected void |
finalize()
Finalizer for this class.
|
long |
getHandle()
Gets the native handle.
|
int |
getMinimalIod()
Gets the minimal interocular distance (IOD) in pixels required to perform a face encoding.
|
FaceModel |
getModel()
Gets the model used to create templates.
|
ProcessingUnit |
getProcessingUnit()
Gets the processing unit where to run the encoding process.
|
int |
getThreadCount()
Gets the number of threads to be used for template encoding.
|
void |
setMinimalIod(int minimalIod)
Sets the minimal interocular distance (IOD) in pixels required to perform a face encoding.
|
void |
setModel(FaceModel model)
Sets the model used to create templates.
|
void |
setProcessingUnit(ProcessingUnit processingUnit)
Sets the processing unit where to run the encoding process.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to be used for template encoding.
|
void |
warmUp()
Gets the face encoder module ready to work by initializing all its internal memory layout.
|
public FaceEncoder()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceEncoder(long handle)
throws FaceException
handle - Handle to the FaceEncoder.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 int getMinimalIod()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimalIod(int minimalIod)
throws FaceException
minimalIod - Minimal interocular distance (IOD) in pixels required to perform a face encoding.FaceException - An error has occurred during Face Library execution.public FaceModel getModel() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setModel(FaceModel model) throws FaceException
model - Model used to create templates.FaceException - An error has occurred during Face Library execution.public ProcessingUnit getProcessingUnit() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setProcessingUnit(ProcessingUnit processingUnit) throws FaceException
processingUnit - Processing unit where to run the encoding process.FaceException - An error has occurred during Face Library execution.public int getThreadCount()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setThreadCount(int threadCount)
throws FaceException
threadCount - Number of threads to be used for template encoding.FaceException - An error has occurred during Face Library execution.public int computeQuality(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.public FaceTemplate createTemplate(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.public void warmUp()
throws FaceException
FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face