I needed to create tile image from different objects of an image for object detection task.
I couldn't find anything similar so I implemented it with your iaa.meta.Augmenter class.
For those who are looking for such functionality, I attach the Tiler class, client code with sequence of augmenters including the Tiler augmenter and an example of launch.
Required imports:
from imgaug import augmenters as iaa
import random
from random import randint
from imgaug.augmentables.bbs import BoundingBox, BoundingBoxesOnImage
from imgaug.augmentables.batches import _BatchInAugmentation
I needed to create tile image from different objects of an image for object detection task. I couldn't find anything similar so I implemented it with your
iaa.meta.Augmenter
class.For those who are looking for such functionality, I attach the
Tiler
class, client code with sequence of augmenters including the Tiler augmenter and an example of launch.Required imports:
Tiler class:
Client code:
Source img:
Example of execution ordinary sequence of augmentations:
Examples of execution Tiler augmentator: