A python library for generating annotations in the PASCAL VOC format.
Switch branches/tags
Clone or download
Latest commit e41bea5 Jun 20, 2018
Permalink
Failed to load latest commit information.
pascal_voc_writer Initial source commit Jan 14, 2018
.gitignore Initial source commit Jan 14, 2018
LICENSE Initial commit Jan 14, 2018
MANIFEST.in Added manifest Jan 14, 2018
README.rst Update README.rst Jun 20, 2018
requirements.txt Package configs Jan 14, 2018
setup.cfg Setup config Jan 14, 2018
setup.py Include package data Jan 24, 2018

README.rst

PASCAL VOC Writer

This library can be used to create image annotation XML files in the PASCAL VOC file format.

Install

pip install pascal-voc-writer

Use

from pascal_voc_writer import Writer

# Writer(path, width, height)

writer = Writer('path/to/img.jpg', 800, 400)

# ::addObject(name, xmin, ymin, xmax, ymax)

writer.addObject('cat', 100, 100, 200, 200)

# ::save(path)

writer.save('path/to/img.xml')