Skip to content

Make COCO annotation .json file format from Pascal VOC annotation xml file

Notifications You must be signed in to change notification settings

cbpark-nota/voc2coco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

voc2coco

Make COCO annotation format .json file from Pascal VOC annotation xml file

How to use

  1. 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

  2. Use voc2coco.py to make .json file
    Example command:


$ python voc2coco.py xmllist.txt path/of/VOCdevkit/VOC2012/Annotations output.json
  

Acknowledgement

https://github.com/shiyemin/voc2coco

About

Make COCO annotation .json file format from Pascal VOC annotation xml file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages