We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,我想用生成的图片做字体识别。请问怎么将字典里的每一个字都生成图片,而不是随机从字典里选字生成?谢谢
The text was updated successfully, but these errors were encountered:
主要修改 service/provider/TextProvider.py中的 类 RandomCorpusGen, https://github.com/BboyHanat/TextGenerator/blob/master/service/provider/TextProvider.py#L51 修改这个方法里的 _random_crop,_random_add(是为了控制生成的长度在限制范围内, 长了随机crop一些,短了随机在添加 一点), 还有关闭randomshuffle(这个提高生成的随机性),修改这些应该能满足你的要求,还有就是在config.yaml中设置random_character的probability=0
Sorry, something went wrong.
@BboyHanat 谢谢,我试试
No branches or pull requests
你好,我想用生成的图片做字体识别。请问怎么将字典里的每一个字都生成图片,而不是随机从字典里选字生成?谢谢
The text was updated successfully, but these errors were encountered: