image-bbox-slicer

This easy-to-use library splits images and its 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.


Keywords
Image, Slicer, Bounding, Box, Annotations, PASCAL, VOC, Object, Detection, Resize, Images, Segmentation, bounding-box-resizer, bounding-box-slicer, image-bounding-box-slicer, image-resizer, image-slicer, object-detection, pascal-voc
License
MIT
Install
pip install image-bbox-slicer==0.1.2

Documentation

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 and Segmentation tasks. With only a few lines of code, one can slice images and their bounding box annotations into smaller tiles, both into specific sizes and into any arbitrary number of equal parts. The tool also supports resizing of images and their bounding box annotations, both by specific sizes and by a resizing/scaling factor. 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.4 and higher versions and requires:

Pillow
numpy
pascal-voc-writer
matplotlib

Slicing Demo: Docs and Notebook

Resizing Demo: Docs and Notebook