imagenie.augment#

Attributes#

Functions#

augment(images, operations)

Applies a sequence of augmentation operations to a list of images.

Module Contents#

imagenie.augment.ALLOWED_FUNCTIONS = ['flip', 'scale', 'blur', 'grayscale']#
imagenie.augment.augment(images, operations)[source]#

Applies a sequence of augmentation operations to a list of images.

Parameters:#

imageslist of np.ndarray

A list of images (as NumPy arrays) to process.

operationslist of tuple

A list of operations to apply, where each operation is a tuple (function, *args, **kwargs). Example: [(flip, 1), (scale, 0.5), (blur, 5)]

Returns:#

list of np.ndarray

The list of augmented images.