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
KevinBu
V2EX  ›  Python

各位大佬,请教一下验证码去除干扰线和矫正的问题

  •  
  •   KevinBu · 2018-12-19 17:41:16 +08:00 · 2967 次点击
    这是一个创建于 1926 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在用 Python 做爬虫,碰到了这种验证码(降噪 /二值化处理后的)

    现在想要将干扰线去掉,最好能矫正一下字符,不吝赐教。

    8 条回复    2018-12-19 18:36:04 +08:00
    KevinBu
        1
    KevinBu  
    OP
       2018-12-19 17:45:49 +08:00
    话说我的图片呢
    KevinBu
        2
    KevinBu  
    OP
       2018-12-19 17:46:45 +08:00
    怎么发本地图片😓
    EvilCult
        3
    EvilCult  
       2018-12-19 18:04:01 +08:00   ❤️ 1
    1, 大佬们发图似乎都用 https://sm.ms

    2, 看不到图,但是我瞎说一下:open cv ,先灰度化, 再用 sobel 算一下 xy 方向上的梯度,之后相减,最后 blur 一下,行不行?
    KevinBu
        4
    KevinBu  
    OP
       2018-12-19 18:22:23 +08:00
    @EvilCult 厉害了,不过算法那些搞不懂~
    KevinBu
        5
    KevinBu  
    OP
       2018-12-19 18:23:13 +08:00
    dobest
        6
    dobest  
       2018-12-19 18:26:52 +08:00 via iPhone
    可以直接上 CNN+RNN 进行端到端验证码识别,GitHub 上有相关代码
    natforum
        7
    natforum  
       2018-12-19 18:31:09 +08:00
    pytesser
    KevinBu
        8
    KevinBu  
    OP
       2018-12-19 18:36:04 +08:00
    @natforum 试过了 效果很差
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   956 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:28 · PVG 05:28 · LAX 14:28 · JFK 17:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.