Package ai.djl.basicdataset.cv
Class CocoMetadata
- java.lang.Object
-
- ai.djl.basicdataset.cv.CocoMetadata
-
public class CocoMetadata extends java.lang.ObjectA metadata class to represent the structure of annotations in Coco.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCocoMetadata.AnnotationAn annotation applied to an image in the coco dataset.static classCocoMetadata.CategoryAn annotation category in the coco dataset.static classCocoMetadata.ImageAn image in the coco dataset.
-
Constructor Summary
Constructors Constructor Description CocoMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CocoMetadata.Annotation>getAnnotations()Returns a list of all annotations.java.util.List<CocoMetadata.Category>getCategories()Returns a list of all categories.java.util.List<CocoMetadata.Image>getImages()Returns a list of all images.
-
-
-
Method Detail
-
getAnnotations
public java.util.List<CocoMetadata.Annotation> getAnnotations()
Returns a list of all annotations.- Returns:
- a list of all annotations
-
getCategories
public java.util.List<CocoMetadata.Category> getCategories()
Returns a list of all categories.- Returns:
- a list of all categories
-
getImages
public java.util.List<CocoMetadata.Image> getImages()
Returns a list of all images.- Returns:
- a list of all images
-
-