Old notes on affine augmentations. Enjoy!
Affine Augmentations
Most of the standard Geometric 2D augmentations can be composed from affine matrices.
Lets load an image with bbox and keypoint labels
import cv2
import yaml
from PIL import Image
# Read image
img = cv2.imread('./augmentation_data.png')
print(f"Image