CVAT XML format
The export of the CVAT annotation tool: one annotations.xml per task, with the boxes, polygons, points, masks and skeletons of each image or frame.
- Data
- Images, Video
- Labels
- BoxesPolygonsMasksKeypointsPolylinesPointsTags
- Files
.xml- Import / export
- Yes / No
What is the CVAT format?
CVAT (Computer Vision Annotation Tool) is an open-source annotation platform for images, video and 3D data. Its own export format, CVAT for images 1.1, is an annotations.xml file next to the images of a task; a video task exports its frames as images.
Each <image> element lists its labels as children: <box> with the corners xtl, ytl, xbr, ybr; <polygon>, <polyline> and <points> with a points string of x,y pairs; <mask> with an rle string and its left, top, width and height; <skeleton> with named points; and <tag> for a label of the whole image.
Folder structure and an example
folder-with-projects
├── project-with-images
│ └── task-with-images
│ ├── images
│ │ ├── car_001.jpeg
│ │ └── car_002.jpeg
│ └── annotations.xml
└── project-with-videos
└── task-with-videos
├── images
│ ├── frame_000000.PNG
│ └── frame_000001.PNG
└── annotations.xml<annotations>
<version>1.1</version>
<image id="0" name="car_001.jpeg" width="1920" height="1080">
<box label="plate" occluded="0" xtl="797.33" ytl="870.92" xbr="965.52" ybr="928.94" z_order="4">
</box>
<points label="wheel" occluded="0" points="54.47,94.81">
</points>
</image>
</annotations>Import and export CVAT in Supervisely
Import CVAT into Supervisely
- Import CVAT
Converts archives or folders exported as CVAT for images 1.1, images and videos, several projects at once. A CVAT project with both images and videos becomes two Supervisely projects.
- CVAT to Supervisely Migration Tool
Connects to a CVAT server with its address and login, and copies the selected projects with their labels and tags.
Export from Supervisely to CVAT
The Supervisely Ecosystem has no export to CVAT XML. Export to COCO or Pascal VOC instead, both of which CVAT can import.
All apps are in the Ecosystem, under Import and Export. Every project is stored in Supervisely JSON in between.
Converting CVAT to and from Supervisely JSON
Import only: there is no export to CVAT XML.
| CVAT | Supervisely JSON | Notes |
|---|---|---|
<box> xtl ytl xbr ybr | rectangle | Corner points in pixels. |
<polygon> | polygon | |
<polyline> | line (polyline) | |
<points> | point | One Supervisely point for each point of the element. |
<mask> (RLE) | bitmap | The RLE is decoded into a mask at its left, top position. |
<skeleton> | graph (keypoint structure) | |
<tag> | image tag; frame tag on videos | A tag without a value. |
| video task frames | video item with objects and frames | The video takes its name from the CVAT annotation. |
<ellipse>, <cuboid> | (skipped) | Supervisely has no ellipse shape; cuboid conversion is not supported by the apps. |