Text Renderer
Generate text images for training deep learning OCR model (e.g. CRNN).
- 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