Git Product home page Git Product logo

bounding-box-augmentation's Introduction

Bounding Box Augmentation

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

Usage

Prepare virtualenv with pipenv.

pipenv install

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

Run script.

pipenv run python augment.py

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

bounding-box-augmentation's People

Contributors

mukopikmin avatar tonybjorkman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bounding-box-augmentation's Issues

The process kills by the system

When I use your augment.py script I have bumped into the problem. My ubuntu kills the process -)

I wrote a simple script whitch restarts main prosess. I do not cureetelly know how you can fix it, so I stay this comment here to let you know about this prablem.

Thank you for awsone tool)

ModuleNotFoundError: No module named 'pascal_voc_writer'

what is the pascal_voc_writer module in augment.py file?
I've install imgaug package but when I've dunned the augment.py script I've get an error:

Traceback (most recent call last):
  File "augment.py", line 5, in <module>
    from pascal_voc_writer import Writer
ModuleNotFoundError: No module named 'pascal_voc_writer'

Any support for Oriented bounding boxes ?

Hi, thanks for your great work on this tool. I was wondering if there is any tool that augments Oriented Bounding Box images ? I am trying to use an annotation tool called roLabelImg which outputs xml file in PascalVOC format but i am not sure how to augment the images with their bounding boxes since its support is not present in this current tool.

If you know of any such tool, please let me know. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.