码迷,mamicode.com
首页 >  
搜索关键字:pil    ( 2160个结果
python version 2.7 required,which was not found in the registry
转自:洒洒 链接http://www.cnblogs.com/thinksasa/p/3283695.html安装PIL-1.1.7.win32-py2.7的时候,不能再注册表中识别出来python2.7方法:新建一个register.py 文件,把一下代码贴进去,保存## script to re...
分类:编程语言   时间:2015-09-30 14:23:00    阅读次数:254
python 图像处理(从安装Pillow开始)
python2.x及以下用的是PIL(图像处理库是 PIL(Python Image Library)),最新版本是 1.1.7 可在http://www.pythonware.com/products/pil/index.htm下载和学习。不过从该网站可看出它不支持python3.xPillow由...
分类:编程语言   时间:2015-09-30 12:54:25    阅读次数:791
简单验证码的识别
验证码图片均取自于国内某知名信息安全网站,通过图像处理、模板对比识别等步骤,实现了该类简单验证码图片的识别功能。同时对程序实现了可视化界面,并集成了(验证码)图片下载、(灰度值)门限手动调节等扩展功能。代码存在github,传送门请戳我。一、程序内容及原理本程序以Python实现,主要借助了PIL(...
分类:其他好文   时间:2015-09-24 19:03:00    阅读次数:286
二值化代码
#coding:utf-8#图像二值处理import osfrom PIL import Imagej=1dirpath="./pic/"path = "./font/"img = Image.open('D:\\mobile\\hi.bmp') # 读入图片img = img.convert("R...
分类:其他好文   时间:2015-09-17 19:13:08    阅读次数:212
Pillow的安装和使用
需要把一段文字转换成图片,我找到了PIL(Python Imaging Library)库,专门干这个用的。还有一个Pillow是“friendly PIL fork”,于是我选择了后者。安装过程稍有曲折,主要是要先把它的依赖库安装就绪,再装Pillow,过程如下:ruby -e "$(curl -...
分类:其他好文   时间:2015-09-15 12:36:00    阅读次数:1441
python3 ImageTk 安装方法
使用命令:$ sudo yum search PIL | grep python3可显示得知:python3-dogpile-cache.noarch : A caching front-end based on the Dogpile lock.python3-dogpile-core.noarc...
分类:编程语言   时间:2015-09-13 19:57:30    阅读次数:870
MAC 下安装PIL
1. 安装使用pip install pil结果报如下错误Collecting PIL Could not find a version that satisfies the requirement PIL (from versions: ) Some externally hosted fil.....
分类:系统相关   时间:2015-09-09 18:51:04    阅读次数:501
Python批量修改图片大小
#?-*-?coding:?utf-8?-*- ‘‘‘ ‘‘‘ import?os from?PIL?import?Image pic_dir?=?r"H:\新建文件夹" for?filename?in?os.listdir(path=pic_dir): ????if?filename.startswith("SAM"): ?????...
分类:编程语言   时间:2015-09-01 20:07:11    阅读次数:318
python django 上传图片
安装PIL模块,如果你的电脑是windows的话,64位的下载地址为http://www.lfd.uci.edu/~gohlke/pythonlibs/安装命令:pipinstall*.whl如果你的电脑是linux的话直接下载http://www.pythonware.com/products/pil/安装即可前台代码<inputtype="file"name="p_w_picpath">4.后台..
分类:编程语言   时间:2015-08-26 12:20:28    阅读次数:206
python 读取图片的尺寸、分辨率
#需要安装PIL模块#encoding=gbk#-------------------------------------------------------------------------------# Name: picRead# Purpose:## Author: ...
分类:编程语言   时间:2015-08-17 06:18:33    阅读次数:2565
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!