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.

Files for pascal-voc-writer, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pascal_voc_writer-0.1.4-py2.py3-none-any.whl (4.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pascal_voc_writer-0.1.4-py3.6.egg (3.6 kB) File type Egg Python version 3.6 Upload date Hashes View hashes

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