Make COCO annotation format .json file from Pascal VOC annotation xml file
-
Use txtwriter.py to make xmllist.txt
xmllist.txt contain xml file names like this
2007_000027.xml
2007_000032.xml
2007_000033.xml
2007_000039.xml
2007_000042.xml
2007_000061.xml
2007_000063.xml
2007_000068.xml
2007_000121.xml -
Use voc2coco.py to make .json file
Example command:
$ python voc2coco.py xmllist.txt path/of/VOCdevkit/VOC2012/Annotations output.json