Package ai.djl.basicdataset.cv
Class CocoMetadata.Image
- java.lang.Object
-
- ai.djl.basicdataset.cv.CocoMetadata.Image
-
- Enclosing class:
- CocoMetadata
public static final class CocoMetadata.Image extends java.lang.ObjectAn image in the coco dataset.
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCocoUrl()Returns the url of this image.intgetHeight()Returns the height of this image.longgetId()Returns the id of this image.intgetWidth()Returns the width of this image.
-
-
-
Method Detail
-
getId
public long getId()
Returns the id of this image.- Returns:
- the id of this image
-
getCocoUrl
public java.lang.String getCocoUrl()
Returns the url of this image.- Returns:
- the url of this image
-
getHeight
public int getHeight()
Returns the height of this image.- Returns:
- the height of this image
-
getWidth
public int getWidth()
Returns the width of this image.- Returns:
- the width of this image
-
-