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,BytesSupplier,ai.djl.util.JsonSerializable,Serializable
Landmark is the container that stores the key points for landmark on a single face.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ai.djl.util.JsonSerializable
ai.djl.util.JsonSerializable.Serializer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ai.djl.modality.cv.output.Rectangle
getBounds, getCoordinates, getHeight, getIoU, getPoint, getWidth, getX, getY, nms, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.djl.ndarray.BytesSupplier
getAsBytes, getAsObjectMethods inherited from interface ai.djl.util.JsonSerializable
getAsString, toByteBuffer, toJson
-
Constructor Details
-
Landmark
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 Details
-
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
-
serialize
public com.google.gson.JsonObject serialize()
-