Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
git clone https://github.com/Belval/TextRecognitionDataGenerator.git cd TextRecognitionDataGenerator/trdg/ python3 run.py -l hi -c 10 -w 5
Before bug fix
image
text
एकशरयत ठठकन ललत-षषठ बखन तर
After bug fix
image
text
कलपाओ घिघियाता हँसोहीं मकी डंडा-डोलिओं
Changes made
Below is the tested font and their speeds for Hindi image generation
I am using Linux Mint 21.3 "Virginia" Cinnamon Edition for testing