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
,Serializable
Landmark
is the container that stores the key points for landmark on a single face.- See Also:
-
Constructor Details
-
Landmark
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 Details
-
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
-