Skip to content
/ voc2coco Public

Yet another voc2coco.py, convert PASCAL VOC xml to MSCOCO json in Object Detection.

License

Notifications You must be signed in to change notification settings

bot66/voc2coco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Usage

A python script for converting PASCAL VOC xml file format to MSCOCO json file format in Object Detection.

python voc2coco.py --xml_dir path/to/xml_files  --output path/to/save/data.json 

type python voc2coco.py -h for more details.

If you want to customize COCO categories key-value pairs, you can create a text file like this:

1,class1
2,class2
3,class3
...
n,classn

then add --labelmap argument with text file path behind python voc2coco.py like this :

python voc2coco.py --labelmap path/to/labelmap.txt

About

Yet another voc2coco.py, convert PASCAL VOC xml to MSCOCO json in Object Detection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages