https://github.com/snowty/gencaptcha
生成英文、中文验证码,文字可随机,可从文本中读取,验证码的背景图可换。
https://github.com/snowty/gencaptcha
Last synced: about 1 year ago
JSON representation
生成英文、中文验证码,文字可随机,可从文本中读取,验证码的背景图可换。
- Host: GitHub
- URL: https://github.com/snowty/gencaptcha
- Owner: Snowty
- Created: 2018-01-15T03:55:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-17T08:23:35.000Z (over 8 years ago)
- Last Synced: 2025-03-28T05:24:58.616Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 51.2 MB
- Stars: 8
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# genCaptcha
1.`genCaptcha_cn.py`:
遍历`/font`文件夹下的字体库,生成不同字体的四字验证码,貌似还是微软雅黑的字体看的比较清楚...
2.`genCaptcha_en.py`:
生成英文加数字的随机验证码
# genRandChar
这个文件比较奇葩,纯属个人的工作需求写的脚本...
# genFromText
读取`text`文件夹下的文本,从中选出固定长度的文本,作为验证码上面的文字
# genFromText_bgpic
可以从`bg_img`中选取背景图片。
# Reference
http://blog.csdn.net/u013421629/article/details/77649225
https://mp.weixin.qq.com/s/J9vjaoClzBbR4oigusNdpw
https://github.com/chineseocr/chinese-ocr/issues/4