Skip to content

A python library for generating annotations in the PASCAL VOC format.

License

Notifications You must be signed in to change notification settings

LAR/pascal-voc-writer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

A python library for generating annotations in the PASCAL VOC format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%