Skip to content

This Repo will help to augment images with annotation files for object Detection

License

Notifications You must be signed in to change notification settings

shubhbrth/Augmentation-for-VOC-Pascal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Annotation for VOC Pascal

Example of augmentating image with bounding boxes. This code is based on aleju/imgaug.

Augmentable annotation format is Pascal VOC only.

Examples

original.jpg

Above image can be augmented to the following images.

Example 1 Example 2 Example 3 Example 4
example1.jpg example2.jpg example3.jpg example4.jpg

Requirements

  • Python3
  • Pipenv
  • imgaug
  • cv2
  • pascal_voc_writer
  • xml.etree.ElementTree
  • shutil
  • numpy

Usage

Put files(Images and Annotations) to augment in input/. (Do not create sub directories.)

Run script.

python augment.py

Augmented images with annotations are generated in output/folder. If there is no bounding boxes in the image, Annotation files (*.xml) are moved to empty/.

Please do Not remove Below Folders

  • empty
  • input
  • output
  • util

About

This Repo will help to augment images with annotation files for object Detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages