PIL
来源:互联网 发布:优化图标 编辑:程序博客网 时间:2024/05/17 05:10
ImageOpe模块
From PIL import Image, ImageOps# image_dir = r'D:\data\test.jpg'img = Image.open(image_dir)
Autocontrast
ImageOps.autocontrast(image, cutoff=0)
img_ac = ImageOps.autocontrast(img, cutoff=10)img.show()
Mirror
左边和右边对调
ImageOps.mirror(image) # ->image_mirror
img_mirror = ImageOps.mirror(img)img_mirror.show()
Filp
顶部和底部对调,不同于图片旋转180°。
ImageOps.filp(image) #->image_flip
img_flip = ImageOps.flip(img)img_flip.show()
阅读全文
0 0
- PIL
- PIL
- pil
- PIL
- PIL
- PIL
- PIL安装
- 初试PIL
- PIL安装
- python PIL
- python PIL
- PIL安装
- centos pil
- 安装PIL
- PIL简介
- pil库
- python,PIL
- PIL 教程
- hdu 2476 刷墙
- XPath
- CentOS7安装MySql遇到的问题
- 管中窥豹:一线工程师看MQTT
- Android Binder设计与实现
- PIL
- 笔记2——Linux虚拟系统
- h2导出为csv,csv导入h2
- (95)键盘输入学生信息,存入文件
- 管理network
- Markdown使用指南
- 如何在局域网中使用XX-Net
- dubbo配置文件报错修改方法
- STM8在STVD下开发所需的中断向量表模版