public class DetectedFaceList extends java.lang.Object implements java.lang.AutoCloseable, java.io.Serializable, java.lang.Iterable<DetectedFace>
| Constructor and Description |
|---|
DetectedFaceList()
Creates a new instance of the DetectedFaceList class.
|
DetectedFaceList(long handle)
Creates a new instance of the DetectedFaceList class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DetectedFace detectedFaceItem)
Adds an item to the DetectedFaceList object.
|
void |
clear()
Clears the DetectedFaceList object.
|
DetectedFaceList |
clone()
Creates a copy of the DetectedFaceList object.
|
void |
close()
Releases all resources used by this DetectedFaceList.
|
protected void |
finalize()
Finalizer for this class.
|
DetectedFace |
findDetectedFace(int id)
Finds a detected face by ID.
|
DetectedFace |
get(int index)
Gets an item of the DetectedFaceList object.
|
int |
getCount()
Gets the number of elements in the DetectedFaceList object.
|
long |
getHandle()
Gets the native handle.
|
int[] |
getIdList()
Gets the list of IDs in the list.
|
DetectedFace |
getLargestFace()
Gets the largest face in the list.
|
java.util.Iterator<DetectedFace> |
iterator() |
void |
removeAt(int index)
Removes an element of the DetectedFaceList object.
|
void |
rescaleAll(float scale)
Rescales all detected faces in the list.
|
void |
resize(int newSize)
DetectedFaceList object.
|
void |
set(int index,
DetectedFace detectedFaceItem)
Sets an item of the DetectedFaceList object.
|
public DetectedFaceList()
throws FaceException
FaceException - An error has occurred during Face Library execution.public DetectedFaceList(long handle)
throws FaceException
handle - Handle to the DetectedFaceList.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 DetectedFaceList clone() throws FaceException
clone in class java.lang.ObjectFaceException - An error has occurred during Face Library execution.public void clear()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void add(DetectedFace detectedFaceItem) throws FaceException
detectedFaceItem - DetectedFace item to add.FaceException - An error has occurred during Face Library execution.public DetectedFace get(int index) throws FaceException
index - Index of the DetectedFace item to get.FaceException - An error has occurred during Face Library execution.public void set(int index,
DetectedFace detectedFaceItem)
throws FaceException
index - Index of the DetectedFace item to set.detectedFaceItem - DetectedFace item to set.FaceException - An error has occurred during Face Library execution.public int getCount()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void removeAt(int index)
throws FaceException
index - Index of the DetectedFace item to remove.FaceException - An error has occurred during Face Library execution.public void resize(int newSize)
throws FaceException
newSize - DetectedFace object.FaceException - An error has occurred during Face Library execution.public DetectedFace findDetectedFace(int id) throws FaceException
id - ID of the detected face to find in the list.FaceException - An error has occurred during Face Library execution.public int[] getIdList()
throws FaceException
FaceException - An error has occurred during Face Library execution.public DetectedFace getLargestFace() throws FaceException
FaceException - An error has occurred during Face Library execution.public void rescaleAll(float scale)
throws FaceException
scale - Scale factor to apply. Range is [0;+inf[.FaceException - An error has occurred during Face Library execution.public java.util.Iterator<DetectedFace> iterator()
iterator in interface java.lang.Iterable<DetectedFace>Copyright © id3 Technologies. All rights reserved. eu.id3.face