Skip to content

slantingsun/SynthText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modify from :

https://github.com/ankush-me/SynthText/tree/python3

https://github.com/JarveeLee/SynthText_Chinese_version

https://github.com/LaJoKoch/SynthTextGerman

用于合成中文,藏文,维吾尔文,德宏傣文,蒙文

install

windows10

conda create --name synthtextpy3 python=3.6
conda activate synthtextpy3
pip install -r requirements.txt

run

  1. 将字体文件放入data/fonts文件夹下

  2. 修改fontlist.txt

  3. 运行 python .\invert_font_size.py 生成data/models/font_px2pt.cp文件

  4. 修改newsgroup.txt文件

  5. 运行python update_freq.py 生成char_freq.cp文件

  6. python gen.py or python gen_more.py

想生成曲线文本,请参考: https://github.com/PkuDavidGuan/CurvedSynthText/tree/mastersynthgen.py文件进行修改

you can use add_more_data.py to gen 8000 background picture, you should put

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages