推荐学习书目
› 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 · Dec 19, 2018 · 3742 views
    This topic created in 2842 days ago, the information mentioned may be changed or developed.

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

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

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

    2, 看不到图,但是我瞎说一下:open cv ,先灰度化, 再用 sobel 算一下 xy 方向上的梯度,之后相减,最后 blur 一下,行不行?
    KevinBu
        4
    KevinBu  
    OP
       Dec 19, 2018
    @EvilCult 厉害了,不过算法那些搞不懂~
    KevinBu
        5
    KevinBu  
    OP
       Dec 19, 2018
    dobest
        6
    dobest  
       Dec 19, 2018 via iPhone
    可以直接上 CNN+RNN 进行端到端验证码识别,GitHub 上有相关代码
    natforum
        7
    natforum  
       Dec 19, 2018
    pytesser
    KevinBu
        8
    KevinBu  
    OP
       Dec 19, 2018
    @natforum 试过了 效果很差
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2694 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:30 · PVG 11:30 · LAX 20:30 · JFK 23:30
    ♥ Do have faith in what you're doing.