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

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

  •  
  •   rabbbit · 2017-07-22 14:32:03 +08:00 · 3543 次点击
    这是一个创建于 2441 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这种粘连的字符要怎么切呢?
    没思路了,希望能给点建议.





    4 条回复    2017-07-23 01:15:47 +08:00
    yemenchun1
        1
    yemenchun1  
       2017-07-22 14:42:20 +08:00
    宽度?
    jhdsgfww
        2
    jhdsgfww  
       2017-07-22 18:13:08 +08:00
    个人感觉,如果图片没有旋转的话,可以把字符宽度和 Y 方向黑色的像素点的个数同时作为判断标准,一般粘连处像素点的个数不会太多
    aaronzjw
        3
    aaronzjw  
       2017-07-22 18:21:16 +08:00 via Android
    根据 y 方向的像素判断,来分割字符,PIL 可以解决
    Archangel_SDY
        4
    Archangel_SDY  
       2017-07-23 01:15:47 +08:00
    可以试试水滴算法及各种改良版:
    http://www.intjit.org/cms/journal/volume/12/4/124_5.pdf
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5898 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:20 · PVG 10:20 · LAX 19:20 · JFK 22:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.