Add new languages to TextRecognitionDataGenerator
masterTo add support for a new non-latin language, follow these steps:
- Create a new folder in the
fonts/directory named after your language's two-letter ISO 639-1 code. - Add a
.ttffont file to that folder. - Edit
run.pyto add anifstatement in theload_fonts()function to include your new directory. - Add a text file to the
dictsfolder named with the same two-letter code. - Run the tool using the
-lflag with your language code.