推荐学习书目
› 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
wsds
V2EX  ›  Python

Python 的 pytesseract+tesseract-ocr 识别验证码很弱啊

  •  
  •   wsds · Jun 6, 2018 · 7457 views
    This topic created in 3037 days ago, the information mentioned may be changed or developed.

    这几个都没法识别

    2Fg4AJ.png

    只能纯数据,而且不加干扰的,才能识别

    2FgrJ1.png

    2Fg51d.png

    2Fg8ba.png

    7 replies  •  2018-06-08 19:37:15 +08:00
    Leigg
        1
    Leigg  
       Jun 6, 2018 via iPhone
    reself
        2
    reself  
       Jun 6, 2018
    这个本来就是要根据具体场景去训练模型的
    jatesun
        3
    jatesun  
       Jun 6, 2018
    这种验证码可能需要训练吧
    summerwar
        4
    summerwar  
       Jun 6, 2018
    训练模型
    RicardoScofileld
        5
    RicardoScofileld  
       Jun 6, 2018
    说实话 我刚研究了这玩意一段时间,优化主要就在两方面,你先对图片进行一下预处理,作用很大,比如说二值化一下,这样干扰因素会少一些,然后你再对这种图片进行训练生成字体文件,放到 tessdata 中,tesseract 训练方法网上很多,你可以找一下,反正我是失败了,我在生成四个文件的时候会出错 也没招到原因,你可以试一试
    RicardoScofileld
        6
    RicardoScofileld  
       Jun 6, 2018
    再补一发,文字倾斜也会有影响,你爬的数据量不大,还是去调云打码这些平台的接口吧
    wsds
        7
    wsds  
    OP
       Jun 8, 2018 via iPhone
    @RicardoScofileld
    还不知道怎么通过打码平台调用,回去看看😁
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    ♥ Do have faith in what you're doing.