Open prathameshza opened 5 months ago
reproduce results with:
trdg -l hi -c 10 -w 5
गरमटयए जतवन टकटकत फफकर बरत
git clone https://github.com/Belval/TextRecognitionDataGenerator.git cd TextRecognitionDataGenerator/trdg/ python3 run.py -l hi -c 10 -w 5
एकशरयत ठठकन ललत-षषठ बखन तर
कलपाओ घिघियाता हँसोहीं मकी डंडा-डोलिओं
Note: Changing the font also changes the images created per second Below is the tested font and their speeds for Hindi image generation Font Speed Lohit-Devanagari 15-16 it/s Gargi 17-18 it/s Sura unicode 11-12 it/s akshra unicode 4-5 it/s Kurti dev 010 50-55 it/s aakar regular 50-55 it/s freesansbold 9-10 it/s Nakula 8-9 it/s
Note: Changing the font also changes the images created per second
I am using Linux Mint 21.3 "Virginia" Cinnamon Edition for testing
I have also tested other languages with the modified changes, they work fine :+1:
Thanks for this work.
But, stll there is problems with the generated images.
if you see the second and last word, they are not matching and generating some invalid text.
Bugfix for Hindi text generation
bug 1: No Hindi text rendering in official trdg pypi package 1.8.0
reproduce results with:
image
text
गरमटयए जतवन टकटकत फफकर बरत
Using official repository
bug 2: Hindi text don't have matras and matras in image are seperated!
reproduce results with:
Before bug fix
image
text
एकशरयत ठठकन ललत-षषठ बखन तर
After bug fix
image
text
कलपाओ घिघियाता हँसोहीं मकी डंडा-डोलिओं
Changes made
I am using Linux Mint 21.3 "Virginia" Cinnamon Edition for testing