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

图像处理问题,如何分割粘连的字符?

  •  
  •   rabbbit · Jul 22, 2017 · 4531 views
    This topic created in 3352 days ago, the information mentioned may be changed or developed.
    这种粘连的字符要怎么切呢?
    没思路了,希望能给点建议.





    4 replies  •  2017-07-23 01:15:47 +08:00
    yemenchun1
        1
    yemenchun1  
       Jul 22, 2017
    宽度?
    jhdsgfww
        2
    jhdsgfww  
       Jul 22, 2017
    个人感觉,如果图片没有旋转的话,可以把字符宽度和 Y 方向黑色的像素点的个数同时作为判断标准,一般粘连处像素点的个数不会太多
    aaronzjw
        3
    aaronzjw  
       Jul 22, 2017 via Android
    根据 y 方向的像素判断,来分割字符,PIL 可以解决
    Archangel_SDY
        4
    Archangel_SDY  
       Jul 23, 2017
    可以试试水滴算法及各种改良版:
    http://www.intjit.org/cms/journal/volume/12/4/124_5.pdf
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2362 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 10:34 · PVG 18:34 · LAX 03:34 · JFK 06:34
    ♥ Do have faith in what you're doing.