public class FaceTracker
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FaceTracker()
Creates a new instance of the FaceTracker class.
|
FaceTracker(long handle)
Creates a new instance of the FaceTracker class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this FaceTracker.
|
void |
detectFaces(Image image,
TrackedFaceList trackedFaceList)
Detects faces in an image and update their info in a TrackedFaceList object.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getConfidenceThreshold()
Gets the confidence threshold, in the range [0;100].
|
FaceModel |
getDetectionModel()
Gets the model used to detect and track faces.
|
FaceModel |
getEncodingModel()
Gets the model used to create features and assess consistancy among views of a given face.
|
long |
getHandle()
Gets the native handle.
|
int |
getMatchThreshold()
Gets the minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.
|
int |
getMaximumTrackedFaceAge()
Gets the maximum number of consecutive non-detections to reach before deleting a tracked face.
|
int |
getMinimumTrackedFaceAge()
Gets the minimum number of consecutive detections to reach before creating a tracked face.
|
int |
getNmsIouThreshold()
Gets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].
|
int |
getThreadCount()
Gets the number of threads to be used for face detection and tracking.
|
void |
setConfidenceThreshold(int confidenceThreshold)
Sets the confidence threshold, in the range [0;100].
|
void |
setDetectionModel(FaceModel detectionModel)
Sets the model used to detect and track faces.
|
void |
setEncodingModel(FaceModel encodingModel)
Sets the model used to create features and assess consistancy among views of a given face.
|
void |
setMatchThreshold(int matchThreshold)
Sets the minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.
|
void |
setMaximumTrackedFaceAge(int maximumTrackedFaceAge)
Sets the maximum number of consecutive non-detections to reach before deleting a tracked face.
|
void |
setMinimumTrackedFaceAge(int minimumTrackedFaceAge)
Sets the minimum number of consecutive detections to reach before creating a tracked face.
|
void |
setNmsIouThreshold(int nmsIouThreshold)
Sets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range is [0;100].
|
void |
setThreadCount(int threadCount)
Sets the number of threads to be used for face detection and tracking.
|
void |
trackFaces(Image image,
TrackedFaceList trackedFaceList)
Tracks faces in an image and update their info in a TrackedFaceList object.
|
void |
warmUp(int imageWidth,
int imageHeight)
Gets the face tracker module ready to work on a specific image size by initializing all its internal memory layout.
|
public FaceTracker()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceTracker(long handle)
throws FaceException
handle - Handle to the FaceTracker.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 getDetectionModel() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setDetectionModel(FaceModel detectionModel) throws FaceException
detectionModel - Model used to detect and track faces.FaceException - An error has occurred during Face Library execution.public FaceModel getEncodingModel() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setEncodingModel(FaceModel encodingModel) throws FaceException
encodingModel - Model used to create features and assess consistancy among views of a given face.FaceException - An error has occurred during Face Library execution.public int getMatchThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMatchThreshold(int matchThreshold)
throws FaceException
matchThreshold - Minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.FaceException - An error has occurred during Face Library execution.public int getMaximumTrackedFaceAge()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumTrackedFaceAge(int maximumTrackedFaceAge)
throws FaceException
maximumTrackedFaceAge - Maximum number of consecutive non-detections to reach before deleting a tracked face.FaceException - An error has occurred during Face Library execution.public int getMinimumTrackedFaceAge()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumTrackedFaceAge(int minimumTrackedFaceAge)
throws FaceException
minimumTrackedFaceAge - Minimum number of consecutive detections to reach before creating a tracked face.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 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 and tracking.FaceException - An error has occurred during Face Library execution.public void detectFaces(Image image, TrackedFaceList trackedFaceList) throws FaceException
image - Source image to process.trackedFaceList - List of tracked faces.FaceException - An error has occurred during Face Library execution.public void trackFaces(Image image, TrackedFaceList trackedFaceList) throws FaceException
image - Source image to process.trackedFaceList - List of tracked 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