bugfixes for Hindi text generation#333
Open
prathameshza wants to merge 10 commits intoBelval:masterfrom
Open
Conversation
Deleting old Hindi font file
Modified the function to prevent it from removing Hindi matras and also to remove invalid characters for image name
Try catch block skips the image if OSError 22 occured
It shows the Hindi text generation and sample of Hindi image
Deleted the file as it was creating OSError
|
Thanks for this work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 5Before 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