Modify from :
https://github.com/ankush-me/SynthText/tree/python3
https://github.com/JarveeLee/SynthText_Chinese_version
https://github.com/LaJoKoch/SynthTextGerman
用于合成中文,藏文,维吾尔文,德宏傣文,蒙文
windows10
conda create --name synthtextpy3 python=3.6
conda activate synthtextpy3
pip install -r requirements.txt
-
将字体文件放入data/fonts文件夹下
-
修改
fontlist.txt
-
运行
python .\invert_font_size.py
生成data/models/font_px2pt.cp
文件 -
修改newsgroup.txt文件
-
运行
python update_freq.py
生成char_freq.cp
文件 -
python gen.py
orpython gen_more.py
想生成曲线文本,请参考:
https://github.com/PkuDavidGuan/CurvedSynthText/tree/master
对synthgen.py
文件进行修改
you can use add_more_data.py
to gen 8000 background picture, you should put