public enum FaceDetectorFeatures extends Enum<FaceDetectorFeatures>
Enum Constant and Description |
---|
AREA
Get the relative area of each detected face (normalised by the image
area).
|
BLOBS
Get the set of pixels describing each face.
|
BOX
Get the bounding box describing each face.
|
COUNT
Count the faces in the image.
|
ORIBOX
Get the oriented bounding box describing each face.
|
Modifier and Type | Method and Description |
---|---|
protected ConnectedComponent |
getConnectedComponent(DetectedFace df) |
abstract <T extends Image<?,T>> |
getFeatureVector(List<? extends DetectedFace> faces,
T img)
Compute a feature vector describing the detections.
|
static FaceDetectorFeatures |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FaceDetectorFeatures[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FaceDetectorFeatures COUNT
MultidimensionalIntFV
.public static final FaceDetectorFeatures BLOBS
MultidimensionalIntFV
where each row has interlaced x and y
values: x1, y1, x2, y2, ...
The returned feature is not square; the length of each row is dependent
on the number of pixels associated with the respective face.public static final FaceDetectorFeatures BOX
MultidimensionalIntFV
with each row corresponding to a
face. Each row is encoded as the x, y, width, height values of the
bounding box.public static final FaceDetectorFeatures ORIBOX
MultidimensionalIntFV
with each row
corresponding to a face. Each row is encoded as the the four corners of
the bounding box: x1, y1, x2, y2, x3, y3, x4, y4.public static final FaceDetectorFeatures AREA
DoubleFV
with each element
corresponding to an individual face detection.public static FaceDetectorFeatures[] values()
for (FaceDetectorFeatures c : FaceDetectorFeatures.values()) System.out.println(c);
public static FaceDetectorFeatures valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected ConnectedComponent getConnectedComponent(DetectedFace df)
public abstract <T extends Image<?,T>> FeatureVector getFeatureVector(List<? extends DetectedFace> faces, T img)
T
- Type of Image
faces
- The detected faces.img
- The image the faces were detected from.