public class DatasetFaceDetector extends Object
| Modifier and Type | Method and Description |
|---|---|
static <FACE extends DetectedFace> |
getBiggest(List<FACE> faces)
Get the biggest face (by area) from the list
|
static <PERSON,IMAGE extends Image<?,IMAGE>,FACE extends DetectedFace> |
process(GroupedDataset<PERSON,? extends ListDataset<IMAGE>,IMAGE> input,
FaceDetector<FACE,IMAGE> detector)
Apply a face detector to all the images in the given dataset, choosing
only the biggest face if multiple are found.
|
static <IMAGE extends Image<?,IMAGE>,FACE extends DetectedFace> |
process(List<IMAGE> instances,
FaceDetector<FACE,IMAGE> detector)
Apply a face detector to all the images in the given dataset, choosing
only the biggest face if multiple are found.
|
public static <PERSON,IMAGE extends Image<?,IMAGE>,FACE extends DetectedFace> GroupedDataset<PERSON,ListDataset<FACE>,FACE> process(GroupedDataset<PERSON,? extends ListDataset<IMAGE>,IMAGE> input, FaceDetector<FACE,IMAGE> detector)
PERSON - Type representing a personIMAGE - Type of imageFACE - Type of DetectedFace extractedinput - The input datasetdetector - The face detectorpublic static <IMAGE extends Image<?,IMAGE>,FACE extends DetectedFace> ListDataset<FACE> process(List<IMAGE> instances, FaceDetector<FACE,IMAGE> detector)
IMAGE - Type of imageFACE - Type of DetectedFace extractedinstances - The input facesdetector - The face detectorpublic static <FACE extends DetectedFace> FACE getBiggest(List<FACE> faces)
FACE - Type of DetectedFacefaces - the list of faces