public class FaceDetectorTool extends Object
Constructor and Description |
---|
FaceDetectorTool() |
Modifier and Type | Method and Description |
---|---|
List<DetectedFace> |
detectFaces(FImage img,
int minSize,
boolean displayResults)
Takes a single image and detects faces, returning a map that maps
a number (the face number) to the rectangle of the detected face.
|
Map<String,List<DetectedFace>> |
detectFaces(List<File> images,
int minSize)
Takes a set of image files and returns a map that maps the
image filename to the list of detected images.
|
Map<String,List<DetectedFace>> |
detectFaces(List<File> images,
int minSize,
boolean displayResults)
Takes a set of image files and returns a map that maps the
image filename to the list of detected images.
|
static void |
main(String[] args) |
public FaceDetectorTool()
public Map<String,List<DetectedFace>> detectFaces(List<File> images, int minSize)
images
- The input imagesminSize
- The minimum detectable facepublic Map<String,List<DetectedFace>> detectFaces(List<File> images, int minSize, boolean displayResults)
images
- The input imagesminSize
- The minimum detectable facedisplayResults
- Displays windows showing the detection results.public List<DetectedFace> detectFaces(FImage img, int minSize, boolean displayResults)
img
- The image to detect faces withinminSize
- The minimum size a face is allowed to bedisplayResults
- Whether to display the result of detection