码迷,mamicode.com
首页 >  
搜索关键字:pil    ( 2160个结果
django 上传图片、使用PIL制作缩略图并保存到sea的storage
上传图片解析:SAE的设置指引如下:处理用户上传文件在setttings.py中添加以下配置。# 修改上传时文件在内存中可以存放的最大size为10mFILE_UPLOAD_MAX_MEMORY_SIZE = 10485760# sae的本地文件系统是只读的,修改django的file storag...
分类:Web程序   时间:2015-05-03 13:14:36    阅读次数:188
我的第一个svm程序:手写字识别
之前学过svm相关知识,基本原理不算复杂,今天做了一个手写字识别程序,总算验证了svm的效果。 因为只是验证效果,实现上原则是简单,使用python + libsvm + PIL(python image library)。这部分工作花了一些时间: PIL: http://www.pythonware.com/products/pil/ 下载源码包,解压之后运行:python setup....
分类:其他好文   时间:2015-05-03 12:04:11    阅读次数:172
python challenge 16
前情回顾:上一篇第16关地址打开16关,又是一张奇奇怪怪很多点点的图片,应该又是与PIL库有关的.页面的标题是:let me get this straight。这是英语中的一句俚语,意思是让我把这事搞清楚.在这一关中其实是让我们把每一行像素位置调整后对其.看这幅图片,很多红色的点,于是想到是不是这...
分类:编程语言   时间:2015-04-30 00:50:23    阅读次数:212
PIL Image模块 show函数无法正常显示图片
环境:Win7+python 2.7.6import Imageim=Image.open('3.png')im.show()显示结果:一直显示正在加载,无法打开,或者显示内容不存在等。 直接双击图片则可正常显示 解决办法:(X: 为python安装路径,默认C盘) X:/Python26/lib/site-packages/PIL/ImageShow.py, 第99行(附近)替换为: re...
分类:其他好文   时间:2015-04-29 21:56:29    阅读次数:248
windows下安装easy_install, pip 及whl文件安装方法
写在前面的话最近在看"Computer Vision with Python"需要安装PIL库,平时一直在windows下开发,就去"Python Extensions for Windows"下找找看,结果下下来文件的拓展名是.whl。Google了一番才知道安装这种拓展名的包需要pip。平时习惯...
分类:Windows程序   时间:2015-04-26 01:09:31    阅读次数:39661
解决python的pip install PIL失败问题
安装PIL的时候遇到个问题, pip?install?PIL Downloading/unpacking?PIL ??Could?not?find?any?downloads?that?satisfy?the?requirement?PIL ??Some?externally?hosted?files?were?ignored...
分类:编程语言   时间:2015-04-25 21:19:25    阅读次数:604
PIL:Python Imaging Library(图像处理标准库)
安装PILMac或Linux安装命令:sudo easy_install PIL如果报错:fatal error: 'freetype/fterrors.h' file not foundMac下所依赖的FreeType链接变更问题,解决如下:ln -s /usr/local/include/fre...
分类:编程语言   时间:2015-04-25 16:24:43    阅读次数:179
The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found
I uninstalled thePILand installed thePillowand the problem solved.PILworked fine for me with the earlier versions ofDjangobut not with Django 1.6apach...
分类:其他好文   时间:2015-04-24 16:09:42    阅读次数:163
Python Show-Me-the-Code 第 0005 题 批量图片处理
第 0005 题:你有一个目录,装了很多照片,把它们的尺寸变成都不大于 iPhone5 分辨率的大小。思路:遍历给出目录下的图片,把大于iPhone5分辨率的图片都进行缩放。使用Python的PIL库对图片进行处理,IPhone5屏幕分辨率为640 × 1136,将大于该分辨率的图片按照一定比例缩放至适合大小并保存。0005.批量图片处理.py#!/usr/bin/env python #codin...
分类:编程语言   时间:2015-04-20 20:59:48    阅读次数:162
Opencv 入门学习之图片人脸识别
读入图片,算法检测,画出矩形框import cv2from PIL import Image,ImageDraw import os def detectFaces(image_name): img = cv2.imread(image_name) face_cascade = cv2....
分类:其他好文   时间:2015-04-19 22:40:51    阅读次数:331
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!