Dropout

class text_renderer.effect.DropoutRand(p=0.5, dropout_p=0.2, 0.4)[source]
Parameters
  • p (float) – Probability of apply this effect

  • dropout_p (Tuple[float, float]) – The percentage range of pixels to be discarded

class text_renderer.effect.DropoutHorizontal(p=0.5, num_line=3, thickness: int = 3)[source]
Parameters
  • p (float) – Probability of apply this effect

  • num_line (int) – Number of horizontal dropout lines

  • thickness (int) –

class text_renderer.effect.DropoutVertical(p=0.5, num_line=8, thickness: int = 3)[source]
Parameters
  • p (float) – Probability of apply this effect

  • num_line (int) – Number of vertical dropout lines

  • thickness (int) –