Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sunny-wong/text_renderer

 
 

Repository files navigation

Text Renderer

Generate text images for training deep learning OCR model (e.g. CRNN). example

  • Modular design. You can easily add Corpus, Effect, Layout.
  • Support generate lmdb dataset which compatible with PaddleOCR, see Dataset
  • Support render multi corpus on image with different font, font size or font color. Layout is responsible for the layout between multiple corpora
  • Generate vertical text
  • Corpus sampler: helpful to perform character balance

Quick Start

See Quick Start to run the example.

Learn more at documentation

pip install -r requirements.txt

python main.py --config config/config.py

python ./gen_config/label2lmdb.py 

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Other 0.4%