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

windows 和 deepin 下图片二值化代码相同,结果却不同。

  •  
  •   xyxc0673 ·
    xyxc0673 · Mar 3, 2017 · 2665 views
    This topic created in 3382 days ago, the information mentioned may be changed or developed.

    代码是一样的,但是 windows 下二值化后线条比较粗, deepin 下二值化后线条较细。这是为什么?

    windows 下:

    deepin 下:

    4 replies    2017-03-04 10:26:24 +08:00
    artandlol
        1
    artandlol  
       Mar 3, 2017
    系统不一样
    这就变成讨论系统了
    codehz
        2
    codehz  
       Mar 3, 2017
    这样子明显原图都不一样啊。。一个 g 是正的一个是歪的(原图粗细也有可能不同)。。。原图能否展示一下呢。。。
    xyxc0673
        3
    xyxc0673  
    OP
       Mar 4, 2017
    @codehz 我又去试了一下,结果发现只有以前下载的图片才会又这样的现象。即使我用代码同时在两个平台上下载图片,发现二值化后的线条也是细的。现在我没办法知道之前的图片和现在的图片为什么用相同的代码下载会有不同的结果。
    xyxc0673
        4
    xyxc0673  
    OP
       Mar 4, 2017
    @codehz 因为原来的代码下载图片二值化后也是和 deepin 下一样的结果。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2307 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:38 · PVG 08:38 · LAX 17:38 · JFK 20:38
    ♥ Do have faith in what you're doing.