python图像处理入门
2017-11-26 11:20
381 查看
1.转换成灰度图片
一行代码搞定,是不是很酷~
2.图形复制与粘贴
from PIL import Image Image.open('in.jpg').convert('L').save('out.jpg');
一行代码搞定,是不是很酷~
2.图形复制与粘贴
from PIL import Image import os pil_im = Image.open('in.png'); box = (0,162,30,192) box2 = (200,162,230,192) region = pil_im.crop(box) pil_im.paste(region,box2) pil_im.save('out.png')
相关文章推荐
- Python图像处理库Pillow入门
- [置顶] 【python 图像处理】Python 图像处理库 Pillow 入门
- Python图像处理(Pillow/PIL)入门
- Python-Image 基本的图像处理操作
- c#图像处理入门(-bitmap类和图像像素值获取方法)
- Python matplotlib 的 Image tutorial图像处理教程
- Java游戏图像处理入门[0]——全屏显示及动画处理
- Python3与OpenCV3.3 图像处理(二十)--圆检测
- [CS131 Computer Vision] 图像处理中卷积的理解与Python实现
- Python 之 使用 PIL 库做图像处理(pillow+ImageDraw)
- 用python简单处理图片(1):打开\显示\保存图像
- Python学习入门基础教程(learning Python)--5.1 Python下文件处理基本过程
- OpenCv+VS2017图像处理入门(一)
- 用Python进行图像处理
- [置顶] 【Python NLP入门教程】词频统计和处理停用词,可视化
- python 图像处理2--聚类
- python PIL 图像处理操作
- 【图像处理】Python-Image模块基本的图像处理操作
- python 简单图像处理(5) 缩放
- python 图像处理 直方图均衡化