RandomResizedCrop¶
- class RandomResizedCrop(output_size, scale_range=(0.08, 1.0), ratio_range=(3.0 / 4, 4.0 / 3), interpolation=cv2.INTER_LINEAR, *, order=None)[source]¶
Crop the input data to random size and aspect ratio. A crop of random size (default: of 0.08 to 1.0) of the original size and a random aspect ratio (default: of 3/4 to 1.33) of the original aspect ratio is made. After applying crop transfrom, the input data will be resized to given size.
- Parameters
output_size – target size of output image, with (height, width) shape.
scale_range – range of size of the origin size cropped. Default: (0.08, 1.0)
ratio_range – range of aspect ratio of the origin aspect ratio cropped. Default: (0.75, 1.33)
order – the same with
VisionTransform
.