Utilities for working with datasets in CVAT format.
Class |
|
A class to facilitate connection to and management of tasks in CVAT. |
Class |
|
Class that stores all relevant information needed to monitor the progress of an annotation run sent to CVAT and download the results. |
Class |
|
An attribute in CVAT image format. |
Class |
|
Class for interacting with the CVAT annotation backend. |
Class |
|
Class for configuring CVATBackend instances. |
Class |
|
An annotated image in CVAT image format. |
Class |
|
Mixin for annotations in CVAT image format. |
Class |
|
Class for writing annotations in CVAT image format. |
Class |
|
An object bounding box in CVAT image format. |
Class |
|
Exporter that writes CVAT image datasets to disk. |
Class |
|
Importer for CVAT image datasets stored on disk. |
Class |
|
A set of keypoints in CVAT image format. |
Class |
|
A polygon in CVAT image format. |
Class |
|
A polyline in CVAT image format. |
Class |
|
A tag in CVAT image format. |
Class |
|
A label returned by the CVAT API. |
Class |
|
A shape returned by the CVAT API. |
Class |
|
A tag returned by the CVAT API. |
Class |
|
Description of the labels in a CVAT image annotation task. |
Class |
|
An annotation track in CVAT video format. |
Class |
|
Mixin for annotations in CVAT video format. |
Class |
|
Class for writing annotations in CVAT video format. |
Class |
|
An object bounding box in CVAT video format. |
Class |
|
Exporter that writes CVAT video datasets to disk. |
Class |
|
Importer for CVAT video datasets stored on disk. |
Class |
|
A set of keypoints in CVAT video format. |
Class |
|
A polygon in CVAT video format. |
Class |
|
A polyline in CVAT video format. |
Class |
|
Mixin for CVAT annotations that store RLE format instance masks. |
Class |
|
Mixin for CVAT annotations that store a list of (x, y) pixel coordinates. |
Function | import |
Imports annotations from the specified CVAT project or task(s) into the given sample collection. |
Function | load |
Loads the CVAT image annotations from the given XML file. |
Function | load |
Loads the CVAT video annotations from the given XML file. |
Variable | logger |
Undocumented |
Function | _build |
Undocumented |
Function | _cvat |
Undocumented |
Function | _do |
Undocumented |
Function | _download |
Undocumented |
Function | _download |
Undocumented |
Function | _ensure |
Undocumented |
Function | _frames |
Undocumented |
Function | _from |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _is |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _remap |
Undocumented |
Function | _remap |
Undocumented |
Function | _render |
Undocumented |
Function | _stringify |
Undocumented |
Function | _to |
Undocumented |
Function | _validate |
Undocumented |
Imports annotations from the specified CVAT project or task(s) into the given sample collection.
Provide one of project_name, project_id, or task_ids to perform an import.
This method can be configured in any of the following three ways:
- Pass the data_path argument to define a mapping between media filenames in CVAT and local filepaths to the same media.
- Pass the download_media=True option to download both the annotations and the media files themselves, which are stored in a directory you specify via the data_path argument.
- Don't provide data_path or download_media=True, in which case it is assumed that the CVAT filenames correspond to the base filenames of existing sample filepaths in the provided sample_collection.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
projectNone | the name of a CVAT project to import |
projectNone | the ID of a CVAT project to import |
taskNone | a CVAT task ID or iterable of CVAT task IDs to import |
dataNone | a parameter that defines the correspondence between the filenames in CVAT and the filepaths of sample_collection. Can be any of the following:
By default, only annotations whose filename matches an existing filepath in sample_collection will be imported |
labelNone | an optional parameter specifying the label types to import. Can be any of the following:
|
insertTrue | whether to create new samples for any media for which annotations are found in CVAT but which do not exist in sample_collection |
downloadFalse | whether to download the images or videos found in CVAT to the directory or filepaths in data_path if not already present |
numNone | a suggested number of threads to use when downloading media |
occludedNone | an optional attribute name in which to store the occlusion information for all spatial labels |
groupNone | an optional attribute name in which to store the group id for labels |
backend:"cvat" | the name of the CVAT backend to use |
**kwargs | CVAT authentication credentials to pass to
CVATBackendConfig |
Loads the CVAT image annotations from the given XML file.
See :ref:`this page <CVATImageDataset-import>` for format details.
Parameters | |
xml | the path to the annotations XML file |
Returns | |
a tuple of |
|
Loads the CVAT video annotations from the given XML file.
See :ref:`this page <CVATVideoDataset-import>` for format details.
Parameters | |
xml | the path to the annotations XML file |
Returns | |
a tuple of |
|
Undocumented