Skip to main content

Create image annotation XML files in the PASCAL VOC format

Project description

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

Install

pip install pascal-voc-writer

Use

# 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’)

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pascal_voc_writer-0.1.4-py2.py3-none-any.whl (4.0 kB) Copy SHA256 hash SHA256 Wheel py2.py3
pascal_voc_writer-0.1.4-py3.6.egg (3.6 kB) Copy SHA256 hash SHA256 Egg 3.6

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page