Padding

class text_renderer.effect.Padding(p=0.5, w_ratio=0.0, 0.05, h_ratio=0.0, 0.3, center: bool = False)[source]
Parameters
  • p (float) – Probability of apply this effect

  • w_ratio (tuple) – [min_ratio, max_ratio)

  • h_ratio (tuple) – [min_ratio, max_ratio)

  • center (bool) – Center text in image