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
Landmark
is 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 theBoundingBox
boundary and provides access to the geometry of theBoundingBox
outline.
-
-
-
Constructor Detail
-
Landmark
public Landmark(double x, double y, double width, double height, java.util.List<Point> points)
Constructs aLandmark
using 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 theBoundingBox
boundary and provides access to the geometry of theBoundingBox
outline.- Specified by:
getPath
in interfaceBoundingBox
- Overrides:
getPath
in classRectangle
- Returns:
- a
Iterable
object, which independently traverses the geometry of theBoundingBox
-
-