Python:读取png图像的默认/常用方法 [英] Python: default/common way to read png images

查看:606
本文介绍了Python:读取png图像的默认/常用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还没有在Python中找到一种读取图像的标准方法。真的没有(因为有这么多自定义内容的函数,我真的很想知道没有读取图像的功能)?或者它是什么? (它应该在MacOSX标准安装和Linux发行版的最新版本中提供。)

I haven't found a standard way in Python to read images. Is there really none (because there are so many functions for so many custom stuff that I really wonder that there are no functions to read images)? Or what is it? (It should be available in the MacOSX standard installation and in most recent versions on Linux distributions.)

如果没有,那么最常见的lib是什么?

If there is none, what is the most common lib?

许多搜索结果提示我使用Python Imaging Library。如果这是一个众所周知的Python-lib用于读取图像,为什么它不包含在Python中?

Many search results hint me to Python Imaging Library. If this is some well known Python-lib for reading images, why isn't it included in Python?

推荐答案

不,那里标准库中没有用于直接读/写/处理图像的模块。但最常见的库可能是 PIL(Python Imaging Library)。许多项目不包含在标准库中,因为它们是1)完全可选的,2)几个Python核心开发人员无法维护。

No, there are no modules in the standard library for reading/writing/processing images directly. But the most common library might be PIL (Python Imaging Library). Many projects are not included in the standard library because they are 1) totally optional and 2) cannot be maintained by the few Python core developers.

这篇关于Python:读取png图像的默认/常用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆