Belval / TextRecognitionDataGenerator

A synthetic data generator for text recognition
MIT License
3.24k stars 966 forks source link

Different font for each character or each word? #310

Open Hegelim opened 1 year ago

Hegelim commented 1 year ago

Let's say I have several different fonts in a fonts folder and let's say I am going to generate some words from a dictionary of letters. Would a different font be chosen for each character or would a different font be chosen for each generated word? I read this part https://github.com/Belval/TextRecognitionDataGenerator/blob/master/trdg/computer_text_generator.py#L134C5-L151C1 and feel it seems that each font is used for each word but I just want to confirm my understanding.