Class FaceDetector
java.lang.Object
cz.fidentis.analyst.landmarks.impl.FaceDetector
An IA-based detector of faces and their landmarks from 2D images. It uses the YuNet model from
the OpenCV Zoo - YuNet.
The model is loaded from a resource file. The detected faces are represented by 2D bounding boxes and significant 2D points. The significant points are the right eye, left eye, nose, right mouth corner, and left mouth corner.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect
(BufferedImage image) Detects faces in the given image.Detects faces in the given image.
-
Constructor Details
-
FaceDetector
public FaceDetector()Constructor. Loads the model from the resource file.
-
-
Method Details
-
detect
Detects faces in the given image.- Parameters:
imageFile
- the image file to detect faces in- Returns:
- information about the detected faces - bounding box and significant points (if available)
-
detect
Detects faces in the given image.- Parameters:
image
- the image to detect faces in- Returns:
- information about the detected faces - bounding box and significant points (if available)
-