KiLJ4EdeN / trdg-persian

Fork of `trdg` for generating Persian text recognition datasets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text recognition dataset generation

Clone and install:

pip install .

Now choose a command to run from a file in commands/ folder and run it like below:

trdg --output_dir ./outputs/bw -l fa -fd trdg/fonts/fa --dict trdg/dicts/fa.txt -t 48 -c 1000 -w 1 -bl 0 -rbl -m 3,3,3,3 -tc "#284854,#542828" -k 5 -rk -na 1 -ws -tdir rtl -b 0

Now there should be 1000 images under outputs/bw folder.

About

Fork of `trdg` for generating Persian text recognition datasets

License:MIT License


Languages

Language:Python 93.6%Language:Jupyter Notebook 5.6%Language:Dockerfile 0.9%