V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
newmean
V2EX  ›  Python

请各位大神帮忙看看,这种验证码该如何生成.

  •  
  •   newmean · 2019-07-27 01:14:55 +08:00 · 2646 次点击
    这是一个创建于 1707 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请大神帮忙看看这个验证码如何用 Pytho  生成????

    https://pin.aliyun.com/get_img?sessionid=123

    7 条回复    2019-07-27 17:35:07 +08:00
    Fanx
        1
    Fanx  
       2019-07-27 03:30:17 +08:00 via Android
    可以用 PIL 试试
    newmean
        2
    newmean  
    OP
       2019-07-27 07:19:00 +08:00
    @Fanx 考虑过了,主要是不知道字体,以及字符间距等.
    jdhao
        3
    jdhao  
       2019-07-27 10:43:53 +08:00 via Android
    @newmean 先使用字体生成字符,然后扭曲字符,然后贴到背景图上
    newmean
        4
    newmean  
    OP
       2019-07-27 11:09:53 +08:00
    @jdhao 大佬,现在主要的问题是:1,不知道是什么字体.2,怎么扭曲
    newmean
        6
    newmean  
    OP
       2019-07-27 17:28:11 +08:00
    @virusdefender 大佬,跑不出来.
    virusdefender
        7
    virusdefender  
       2019-07-27 17:35:07 +08:00
    @newmean 肯定能用,自己调试下吧。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5098 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:16 · PVG 09:16 · LAX 18:16 · JFK 21:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.