CVAT Toolkit
A simple Python package for reading CVAT (Computer Vision Annotation Tool) annotation files.
Features
- Read CVAT annotations from XML or ZIP files
- Parse Polygons, Bounding Boxes, and Masks
- Filter by label or image name
- Clean, typed API
Requirements
- Python >= 3.8
- numpy >= 1.20.0
Installation
pip install -e .
Quick Start
from cvatkit import CvatReader
# Load annotations (XML or ZIP)
reader = CvatReader("annotations.xml")
# Print summary
print(reader)
# Get polygons filtered by label
polygons = reader.get_polygons(label="collapse")
# Access polygon data
for polygon in polygons:
print(f"Image: {polygon.image_name}")
print(f"Points: {polygon.points}") # numpy array (N, 2)
print(f"Attributes: {polygon.attributes}")
Examples
See demo.ipynb for complete examples including:
- Reading from XML and ZIP files
- Working with polygons, boxes, and masks
- Filtering by label and image name
- Using iterators for large datasets
- Getting statistics and summaries
License
MIT License - see LICENSE file for details.
Release files for cvatkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cvatkit-0.1.0.tar.gz | 267.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cvatkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 280.3 kB
Release files / cvatkit-0.1.0.tar.gz
| Download URL | cvatkit-0.1.0.tar.gz |
|---|---|
| Size | 267.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56a5bf7b2bcbb943c42560cf12f52a1a59cda3980f12809012d34496a65b67f1
|
|
BLAKE2b-256 checksum How to use checksums |
c51f5c432e29143c7ebfa1eee1c381261d8b290497e9c9256fa982eda2a1c2dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 23, 2026.
Transparency logRelease files / cvatkit-0.1.0-py3-none-any.whl
| Download URL | cvatkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fc32f4adb4741d3b239852484c5071b7b6cc2a933499ab621ef56c89718637f
|
|
BLAKE2b-256 checksum How to use checksums |
7c0f77f12cff68dfc45dc06102f6dd96a3dee05510427185e8e9394a510a53b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 23, 2026.
Transparency log