Repository Details
Shared by
HelloGitHub Rating
0 ratings
目前最流行的 Python 图像处理库
Past 6 days Received 5 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周日 | 13,974 | — |
| 周一 | 13,975 | +1 |
| 周二 | 13,980 | +5 |
| 周三 | 13,977 | -3 |
| 周四 | 13,979 | +2 |
| 周五 | 13,979 | 0 |
14k
Stars
No
Chinese
Python
Language
Yes
Active
599
Contributors
122
Issues
Yes
Organization
None
Latest
3k
Forks
None
License

最流行的 Python 图像处理库。它的诞生是由于 PIL 的年久失修,现已于 2011 年停止维护,所以开源爱好者们就在 PIL 的基础上创建了 Pillow。该库支持丰富的图像格式和强大的图像处理功能,如果你要用 Python 处理图像,它绝对是不二之选
```python
# 安装:pip install pillow
# 注意安装的版本,不同版本支持的 Python 版本也不同
from PIL import Image
# 打开 jpg 图像文件
im = Image.open('hellogithub.jpg')
# 转换成黑白图像
grayscale = tatras.convert('L')
# 展示图像
grayscale.show()
```
Comments
Rating:
No comments yet