Belval / TextRecognitionDataGenerator

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

how can I run trdg in python, but not execute file ? #256

Open caihaibin1991 opened 2 years ago

caihaibin1991 commented 2 years ago

how can I run trdg in python, but not execute file ?

SilvaQ commented 2 years ago

look at run.py and function main.
also you read document or source code to khow how to generate str and image

Mohammed20201991 commented 1 year ago

@caihaibin1991 1- First clone you need to clone the repo git clone https://github.com/Mohammed20201991/TextRecognitionDataGeneratorHuMu23.git or you can clone the original one made by cc @Belval 2- pip install requirements.txt 3- cd TextRecognitionDataGeneratorHuMu23/trdg/ 4- python3 run.py -c 10 by default it uses English and in this case, will read words from trdg/dicts/en.txt and you can see the results inout dir