Package ai.djl.modality.cv.output
Class Landmark
- java.lang.Object
-
- ai.djl.modality.cv.output.Rectangle
-
- ai.djl.modality.cv.output.Landmark
-
- All Implemented Interfaces:
BoundingBox,java.io.Serializable
public class Landmark extends Rectangle
Landmarkis the container that stores the key points for landmark on a single face.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<Point>getPath()Returns an iterator object that iterates along theBoundingBoxboundary and provides access to the geometry of theBoundingBoxoutline.
-
-
-
Constructor Detail
-
Landmark
public Landmark(double x, double y, double width, double height, java.util.List<Point> points)Constructs aLandmarkusing a list of points.- Parameters:
x- the left coordinate of the bounding rectangley- the top coordinate of the bounding rectanglewidth- the width of the bounding rectangleheight- the height of the bounding rectanglepoints- the key points for each face
-
-
Method Detail
-
getPath
public java.lang.Iterable<Point> getPath()
Returns an iterator object that iterates along theBoundingBoxboundary and provides access to the geometry of theBoundingBoxoutline.- Specified by:
getPathin interfaceBoundingBox- Overrides:
getPathin classRectangle- Returns:
- a
Iterableobject, which independently traverses the geometry of theBoundingBox
-
-