KeramKeram / AutoLabelTool

Small tool to paste augmented image files to background and generate xml files with labels(Pascal VOC Format).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoLabelTool

From time to time there is need to create database of images for machine learning. In order to create bigger base we use some kind of augumentator. Sometimes we only want to one element to be augmented and rest of background should be intact. Problem here is to generate new labels(Pascal VOC Format) for such images. this small tool can do this for you.

Example

This example is not the same like this in example and out folder. First Image: Original file.

alt text

We are extracting blue rectangle from background and next we generate many variants of this object. Now we want to: Add this generated images to template image with background only. We are adding this images in some specific area(rectangle area) on template(we randomly generating coordinates in specific are). In the end we want to generate xml file with label data(Pascal VOC Format) On this image we have only background. Green dot rectangle it is area when we want to put images.

alt text

This is example output:

alt text

End information

More information about configuring script is on wiki.

About

Small tool to paste augmented image files to background and generate xml files with labels(Pascal VOC Format).

License:GNU General Public License v3.0


Languages

Language:Python 100.0%