Class Landmark

java.lang.Object
ai.djl.modality.cv.output.Rectangle
ai.djl.modality.cv.output.Landmark
All Implemented Interfaces:
BoundingBox, Serializable

public class Landmark extends Rectangle
Landmark is the container that stores the key points for landmark on a single face.
See Also:
  • Constructor Details

    • Landmark

      public Landmark(double x, double y, double width, double height, List<Point> points)
      Constructs a Landmark using a list of points.
      Parameters:
      x - the left coordinate of the bounding rectangle
      y - the top coordinate of the bounding rectangle
      width - the width of the bounding rectangle
      height - the height of the bounding rectangle
      points - the key points for each face
  • Method Details

    • getPath

      public Iterable<Point> getPath()
      Returns an iterator object that iterates along the BoundingBox boundary and provides access to the geometry of the BoundingBox outline.
      Specified by:
      getPath in interface BoundingBox
      Overrides:
      getPath in class Rectangle
      Returns:
      a Iterable object, which independently traverses the geometry of the BoundingBox