This data augmentation option allows you to crop the images into a certain dimension, creating synthetic data. The cropping could yield any patch of the image and is therefore called "Random Crop".
You should make sure that the original image size is larger than the requested crop size.
Parameters
Height
Sets the height of the desired cropped image in pixels.
Width
Sets the width of the desired cropped image in pixels.
# we have our required croppedimage in augmented_image.
Copied!
The following code implementation crops by taking 4 specific corner points. However, the tool generates random points for each of the training images that needs to be cropped.