PyramidRescale¶
- class mmocr.datasets.transforms.PyramidRescale(factor=4, base_shape=(128, 512), randomize_factor=True)[源代码]¶
Resize the image to the base shape, downsample it with gaussian pyramid, and rescale it back to original size.
Adapted from https://github.com/FangShancheng/ABINet.
Required Keys:
img (ndarray)
Modified Keys:
img (ndarray)
- 参数
- 返回类型