Usage

XML to CSV

  • It converts from XML to CSV format.
COMMAND REQUIRED DESCRIPTION
--xml_file yes Path to CVAT-XML file.
--csv_file yes Path to CSV file.
--full no Use True for obtaining all the attributes of the XML. Default value: False.

Return

CSV file - If you run the script without the full command, the CSV file will contain only these attributes: id, width, height, path, and image. But if you run the script with the --full=True command the CSV file will contain all the attributes of the XML file.

Command line:

docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:python.latest cvat \
    xml2csv \
    --xml_file=<CVAT_XML> \
    --csv_file=<CSV> \
    --full=<FULL>

Use case:

  • Convert XML to CSV format, using the --full=True command.

image