augmentation

augment

horizontal

Flipping transformation for data augmentation.

class data.augmentation.horizontal.RandomHorizontalFlip(prob: float = 0.5)

Bases: object

Randomly flip an image with probability p.

Parameters:p (float) – Probability of flipping an image
Returns:Flipped image as a numpy array numpy.ndarray: Transformed bounding boxes
Return type:numpy.ndarray

rotate

scale

translate

utils