Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.6 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.6 KB

PyPI version

Image and Bounding Box Slicer-Resizer (image_bbox_slicer)

This easy-to-use library is a data transformer sometimes useful in Object Detection tasks. It splits images and their bounding box annotations into tiles, both into specific sizes and into any arbitrary number of equal parts. It can also resize them, both by specific sizes and by a resizing/scaling factor. Of course it goes without saying that just image slicing could in Segmentation tasks (where input and labels both are images). Read the docs here.

Partial Labels Example

Currently, this library only supports bounding box annotations in PASCAL VOC format. And as of now, there is no command line execution support. Please raise an issue if needed.

Installation

$ pip install image_bbox_slicer

This tool was tested on both Windows and Linx. Works well with Python 3.8.

Pillow
numpy
pascal-voc-writer
matplotlib

Slicing Demo: Docs and Notebook

Resizing Demo: Docs and Notebook