Metadata-Version: 2.1
Name: cvat_reader
Version: 0.0.1
Summary: Read cvat training set
Home-page: https://github.com/eyedl/cvat_reader
Author: Koen Vossen
Author-email: info@koenvossen.nl
License: BSD
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved
Classifier: Topic :: Scientific/Engineering
Description-Content-Type: text/markdown

# cvat_reader

Package to read cvat training set zip file into numpy array image and annotations.

The cvat format is usefull because it contains the original video file. The original video file has two main advantage over image files:
1. The original video file is much better compressed than a bunch of image files.
2. The image files are re-compressed versions of the video file and therefore lower in quality

## Example

```python

import cv2

from cvat_reader import open_cvat


with open_cvat("task.zip") as dataset:
    dataset.seek(100)
    print(dataset.labels)
    dataset.seek_first_annotation()

    for frame in dataset:
        if frame.annotations:
            cv2.imshow('original', frame.image)

```


