class documentation
class CVATImage(object): (source)
Constructor: CVATImage(id, name, width, height, ...)
An annotated image in CVAT image format.
Parameters | |
id | the ID of the image |
name | the filename of the image |
width | the width of the image, in pixels |
height | the height of the image, in pixels |
tags | a list of CVATImageTag instances |
boxes | a list of CVATImageBox instances |
polygons | a list of CVATImagePolygon instances |
polylines | a list of CVATImagePolyline instances |
points | a list of CVATImagePoints instances |
subset | the project subset of the image, if any |
Class Method | from |
Creates a CVATImage from an <image> tag of a CVAT image annotations XML file. |
Class Method | from |
Creates a CVATImage from a dictionary of labels. |
Method | __init__ |
Undocumented |
Method | get |
Returns a fiftyone.core.metadata.ImageMetadata instance for the annotations. |
Method | iter |
Returns an iterator over the annotations in the image. |
Method | to |
Returns fiftyone.core.labels.Label representations of the annotations. |
Instance Variable | boxes |
Undocumented |
Instance Variable | height |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | points |
Undocumented |
Instance Variable | polygons |
Undocumented |
Instance Variable | polylines |
Undocumented |
Instance Variable | subset |
Undocumented |
Instance Variable | tags |
Undocumented |
Instance Variable | width |
Undocumented |
Property | has |
Whether this image has 2D boxes. |
Property | has |
Whether this image has keypoints. |
Property | has |
Whether this image has polygons or polylines. |
Property | has |
Whether this image has tags. |
Creates a CVATImage
from a dictionary of labels.
Parameters | |
labels | a dict mapping keys to fiftyone.core.labels.Label
instances |
metadata | a fiftyone.core.metadata.ImageMetadata for the
image |
Returns | |
a CVATImage |
def __init__(self, id, name, width, height, tags=None, boxes=None, polygons=None, polylines=None, points=None, subset=None):
(source)
¶
Undocumented
Returns a fiftyone.core.metadata.ImageMetadata
instance for
the annotations.
Returns | |
a fiftyone.core.metadata.ImageMetadata |
Returns an iterator over the annotations in the image.
Returns | |
an iterator that emits CVATImageAnno instances |
Returns fiftyone.core.labels.Label
representations of the
annotations.
Returns | |
a dict mapping field keys to fiftyone.core.labels.Label
instances |