Overview
Annotations in CVAT include shapes (rectangles, polygons, polylines, points, cuboids, ellipses, masks), tracks (objects tracked across frames), and tags (frame-level labels). Annotations can be managed at the project, task, or job level.Annotation Format
CVAT uses a standardized JSON format for annotations:Shape Types
CVAT supports the following shape types:Rectangle
Bounding boxes defined by two points (top-left and bottom-right):Polygon
Closed polygons defined by multiple points:Polyline
Open polylines:Points
Multiple individual points:Cuboid
3D bounding boxes (8 points):Ellipse
Ellipses defined by center and two radii:Mask
Binary masks (raster format):Get Annotations
Annotations can be retrieved at different levels:Get Task Annotations
Get Job Annotations
Response Format
integer
Annotation format version
array
array
Array of shape annotations
string
Shape type:
rectangle, polygon, polyline, points, cuboid, ellipse, or maskinteger
Frame number
integer
Label identifier
array
Array of coordinate values
boolean
Whether the object is occluded
integer
Group identifier
string
Annotation source
array
Array of attribute values
array
Create Annotations
Add new annotations using the PATCH endpoint withaction=create.
Path Parameters
integer
required
Task or job identifier
Query Parameters
string
required
Must be
createRequest Body
array
Array of shape objects to create
array
Array of tag objects to create
array
Array of track objects to create
Update Annotations
Modify existing annotations usingaction=update.
Query Parameters
string
required
Must be
updateRequest Body
Include theid field for each annotation to update, along with the fields to modify.
Delete Annotations
Remove specific annotations usingaction=delete.
Query Parameters
string
required
Must be
deleteReplace All Annotations
Replace all annotations in a task or job.Delete All Annotations
Remove all annotations from a task or job.Import Annotations
Import annotations from various formats.Supported Import Formats
- COCO 1.0
- YOLO 1.1
- Pascal VOC 1.1
- CVAT 1.1
- LabelMe 3.0
- KITTI 1.0
- MOT 1.1
- And many more…
/api/server/annotation/formats
Path Parameters
integer
required
Task or job identifier
Query Parameters
string
Import format name
string
Annotation filename (for cloud storage)
string
Import location:
local or cloud_storageinteger
Cloud storage ID
Response
string
Request ID for tracking import status
GET /api/requests/{rq_id}
Export Annotations
Export annotations in various formats.Supported Export Formats
- COCO 1.0
- YOLO 1.1
- Pascal VOC 1.1
- CVAT 1.1
- TFRecord 1.0
- Segmentation mask 1.1
- And many more…
Query Parameters
string
required
Export format name
string
Output filename
boolean
default:false
Include images in export
string
Export location:
local or cloud_storageinteger
Cloud storage ID
Response
string
Request ID for tracking export status
Working with Tracks
Tracks represent objects that persist across multiple frames.Create a Track
Track Properties
boolean
Whether the object is outside the frame (not visible but still tracked)
boolean
Whether this frame is a keyframe for interpolation