Shortcuts

ImageContentJitter

class mmocr.datasets.transforms.ImageContentJitter[源代码]

Jitter the image contents.

Adapted from https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.6/ppocr/data/imaug/rec_img_aug.py # noqa

Required Keys:

  • img

Modified Keys:

  • img

transform(results, jitter_ratio=0.01)[源代码]

Transform function to jitter images.

参数
  • results (dict) – Result dict from loading pipeline.

  • jitter_ratio (float) – Controls the strength of jittering. Defaults to 0.01.

返回

Jittered results.

返回类型

dict

Read the Docs v: dev-1.x
Versions
latest
stable
0.x
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.