TextRecognitionDataGenerator icon indicating copy to clipboard operation
TextRecognitionDataGenerator copied to clipboard

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

Open caihaibin1991 opened this issue 3 years ago • 2 comments

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

caihaibin1991 avatar Mar 21 '22 08:03 caihaibin1991

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

SilvaQ avatar Jul 12 '22 07:07 SilvaQ

@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 in out dir

Mohammed20201991 avatar Feb 02 '23 01:02 Mohammed20201991