public class FaceDetector
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FaceDetector()
Creates a new instance of the FaceDetector class.
|
FaceDetector(long handle)
Creates a new instance of the FaceDetector class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this FaceDetector.
|
DetectedFaceList |
detectFaces(Image image)
Detects faces in an image and store their info in a DetectedFaceList object.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getConfidenceThreshold()
Gets the confidence threshold, in the range [0;100].
|
long |
getHandle()
Gets the native handle.
|
FaceModel |
getModel()
Gets the model used to detect and track faces.
|
int |
getNmsIouThreshold()
Gets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].
|
ProcessingUnit |
getProcessingUnit()
Gets the processing unit where to run the detection process.
|
int |
getThreadCount()
Gets the number of threads to be used for face detection.
|
void |
setConfidenceThreshold(int confidenceThreshold)
Sets the confidence threshold, in the range [0;100].
|
void |
setModel(FaceModel model)
Sets the model used to detect and track faces.
|
void |
setNmsIouThreshold(int nmsIouThreshold)
Sets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].
|
void |
setProcessingUnit(ProcessingUnit processingUnit)
Sets the processing unit where to run the detection process.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to be used for face detection.
|
void |
trackFaces(Image image,
DetectedFaceList detectedFaceList)
Tracks faces in an image and update their info in a DetectedFaceList object.
|
void |
warmUp(int imageWidth,
int imageHeight)
Gets the face detector module ready to work on a specific image size by initializing all its internal memory layout.
|
public FaceDetector()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceDetector(long handle)
throws FaceException
handle - Handle to the FaceDetector.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 getConfidenceThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setConfidenceThreshold(int confidenceThreshold)
throws FaceException
confidenceThreshold - Confidence threshold, in the range [0;100].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 detect and track faces.FaceException - An error has occurred during Face Library execution.public int getNmsIouThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setNmsIouThreshold(int nmsIouThreshold)
throws FaceException
nmsIouThreshold - Non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].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 detection 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 face detection.FaceException - An error has occurred during Face Library execution.public DetectedFaceList detectFaces(Image image) throws FaceException
image - Source image to process.FaceException - An error has occurred during Face Library execution.public void trackFaces(Image image, DetectedFaceList detectedFaceList) throws FaceException
image - Source image to process.detectedFaceList - List of detected faces.FaceException - An error has occurred during Face Library execution.public void warmUp(int imageWidth,
int imageHeight)
throws FaceException
imageWidth - Width of the expected image size.imageHeight - Height of expected image size.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face