text_renderer
Generate text images for training deep learning ocr model
...Users can supply their own corpora, fonts, character sets, backgrounds, and YAML configuration files. Available effects include perspective distortion, random cropping, curved text, borders, variable spacing, lines, embossing, color changes, inversion, and blur. A strict mode retries samples until the selected font supports every required character, which is useful for Chinese and other large character sets. Font-checking and debug tools help identify unsupported glyphs and visualize bounding or rotated boxes. Optional CUDA-enabled OpenCV processing can accelerate generation, although the repository points users to a newer successor project.