Class CocoMetadata.Annotation

  • Enclosing class:
    CocoMetadata

    public static final class CocoMetadata.Annotation
    extends java.lang.Object
    An annotation applied to an image in the coco dataset.
    • Constructor Summary

      Constructors 
      Constructor Description
      Annotation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getArea()
      Returns the area of this annotation.
      double[] getBoundingBox()
      Returns the bounding box of this annotation.
      long getCategoryId()
      Returns the category id of this annotation.
      long getId()
      Returns the id of this annotation.
      long getImageId()
      Returns the id of the image this annotation applies to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Annotation

        public Annotation()
    • Method Detail

      • getImageId

        public long getImageId()
        Returns the id of the image this annotation applies to.
        Returns:
        the id of the image this annotation applies to
      • getId

        public long getId()
        Returns the id of this annotation.
        Returns:
        the id of this annotation
      • getBoundingBox

        public double[] getBoundingBox()
        Returns the bounding box of this annotation.
        Returns:
        the bounding box of this annotation
      • getCategoryId

        public long getCategoryId()
        Returns the category id of this annotation.
        Returns:
        the category id of this annotation
      • getArea

        public double getArea()
        Returns the area of this annotation.
        Returns:
        the area of this annotation