Generates mask png files from a cvat annotations.xml.
You can either use the CLI:
CVATTools.exe <input_cvat_xml_file> <output_directory>
Or use the class in your own C++ program.
For every label a directory is created. In this directory, a mask image will be generated for every label and every image in the annoations.xml. When a label does not occur in an image, a empty mask will be generated. Also, when a label occurs in an image multiple times, all labels gets merged into one single mask.
Example tree given the CVAT exmaple.xml.
|-car
|---filename000.png
|-plate
|---filename000.png
|-traffic_line
|---filename000.png
|-wheel
|---filename000.png
Requires:
- OpenCV (4+)
Uses: