Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何使用 pip 在 Windows 上安装 Pillow?
我正在尝试在 Windows 上安装 Pillow 3 1 按照说明 我应该可以输入 pip install Pillow 但我得到 ValueError jpeg is required unless explicitly disable
python
pythonimaginglibrary
python 图像 PIL 到二进制 Hex
from PIL import Image from PIL import ImageDraw from PIL import ImageFont import urllib request import io import binasci
python
image
Hex
pythonimaginglibrary
binaryfiles
将图像元数据与 tif 一起保存的最佳方法是什么?
在我作为研究生的工作中 我捕获显微镜图像并使用 python 将它们保存为原始 tif 我想添加元数据 例如我正在使用的显微镜 的名称 放大倍数和成像激光波长 这些细节对于我如何后期处理图像都很重要 我应该能够用 tif 做到这一点 对吗
python
pythonimaginglibrary
tiff
导入错误:无法导入名称 _imaging
我安装了Pillow 然后我想做 from PIL import Image 我收到以下错误 Traceback most recent call last File
python
pip
pythonimaginglibrary
Imaging
缩放存储在 S3 中的图像
我面临的情况是 我需要将多个网站的图像存储推送到可以无限扩展的服务 S3 CloudFiles 等 到目前为止 我们已经能够允许用户在 Python 的图像库的帮助下动态生成自定义缩略图大小sorl 缩略图在姜戈 通过将我们的图像移动到 S
Browser
imageprocessing
amazons3
pythonimaginglibrary
cloudfiles
寻找图像中的空白区域
这个问题在某种程度上与语言无关 但我选择的工具恰好是 numpy 数组 我正在做的是通过 PIL 获取两个图像的差异 img ImageChops difference img1 img2 我想找到包含从一张图片到另一张图片的变化的矩形区域
python
languageagnostic
imageprocessing
NumPy
pythonimaginglibrary
如何快速更改颜色字典中图像中的像素?
我有一个图像 我想从颜色图中更改图像中的所有颜色 例如 10 20 212 60 40 112 目前 我正在读取图像 OpenCV 然后迭代图像数组并更改每个像素 但这非常慢 有什么办法可以让我做得更快吗 我对这个问题提供两个答案 这个答案
python3x
opencv
pythonimaginglibrary
在 python 中获取 gif 的每秒帧数?
在 python 中 我使用 PIL 加载 gif 我提取第一帧 对其进行修改 然后将其放回去 我用下面的代码保存修改后的gif imgs 0 save C etc test gif save all True append images
python
python3x
pythonimaginglibrary
gif
animatedgif
保存枕头图像时如何正确设置 DPI?
我正在尝试使用Python以编程方式创建图像枕头库但我遇到图像内文本的图像质量问题 我想将生成的图像保存为 PNG 因此我在保存时设置 DPIthis 但我是否保存dpi 72 72 or dpi 600 600 它在视觉上看起来是一样的
python
image
DPI
pythonimaginglibrary
TK框架双重实现问题
我正在测试使用 Tkinter 模块创建 GUI 我试图使用 PIL 将图像添加到 GUI 我的代码如下所示 import Tkinter as tk from PIL import Image ImageTk root tk Tk roo
python
python27
Tkinter
pythonimaginglibrary
Anaconda
带有蒙版和 RGB 图像的 Numpy/Scipy
我正在尝试使用skikit learn 为RGB 图像创建蒙版 我想创建一个仅选择等于 0 10 0 的像素的蒙版 即绿色通道上的 10 然后只显示那些像素 这应该是直接的 类似于http scikit image org docs dev
python
NumPy
scipy
pythonimaginglibrary
如何使用PIL裁剪图像?
我想通过从给定图像中删除前 30 行和后 30 行来裁剪图像 我已经搜索过但没有得到确切的解决方案 有人有一些建议吗 有一个crop method w h yourImage size yourImage crop 0 30 w h 30
python
pythonimaginglibrary
crop
使用Python/PIL裁剪图像的非对称区域
有没有办法剪掉non使用 Python PIL 绘制图像的矩形区域 例如在这张图片中 我想排除所有黑色区域以及塔 屋顶和电线杆 http img153 imageshack us img153 5330 skybig jpg 我猜是图像路径
python
imageprocessing
path
pythonimaginglibrary
crop
AWS Lambda:如何使用Pillow库?
我正在尝试创建一个 AWS lambda 函数来创建我上传的图像的缩略图 我的脚本在本地运行良好 我遵循了这个tutorial部署我的函数 但我的 Pillow 库有问题 实际上 当我测试我的函数时 我可以看到以下日志 我找到了这个post
python27
awslambda
pythonimaginglibrary
Django PIL:IOError 无法识别图像文件
我正在学习 Python 和 Django 用户使用 forms ImageField 提供图像 然后我必须对其进行处理才能创建两个不同大小的图像 当我提交表单时 Django 返回以下错误 IOError at add event can
python
django
image
pythonimaginglibrary
在PIL中打开图像文件时出错
我正在尝试执行以下代码 from pytesser import import Image i C Documents and Settings Administrator Desktop attachments R1PNDTCB jpg
python
pythonimaginglibrary
如何使用 Python 图像库 (PIL) 识别非照片或“无趣”图像
我有数千张图像 我需要剔除那些不是照片或其他 有趣 的图像 例如 无趣 的图像可能全部是一种颜色 或者大部分是一种颜色 或者是简单的图标 徽标 该解决方案不必是完美的 只要足以删除最不有趣的图像即可 到目前为止 我最好的想法是对像素进行随机
python
pythonimaginglibrary
Imaging
如何使用 PIL 从图像中剪切自定义形状?
我想截一张图 比如说 使用另一张具有透明背景的图片 如下所示 并得到如下结果 如何使用 Python PIL Pillow 实现此目的 或者任何其他库 但它必须是Python 的 我们打电话吧source png到第一张图像 并且mask
python
pythonimaginglibrary
将生成的 PIL 图像保存到 django 中的 ImageField 中
我在用qrcode生成二维码 当购买门票或购买真实时 我想生成一个二维码图像并使用 PIL 进行一些更改 最后将修改后的画布保存到模型的Image字段中 class Ticket models Model booked at models
python
django
python3x
pythonimaginglibrary
使用 Python/PIL 从图像中删除背景颜色
我一直在努力让它发挥作用 但确实遇到了麻烦 所以非常感谢您的帮助 使用下面的代码 我想将具有指定 RGB 值的特征更改为白色 并将图像中的所有其他特征更改为黑色 即基本上从图像中提取特征 不幸的是 尽管我可以将我想要的特征 extract
python
image
python27
pythonimaginglibrary
«
1 ...
14
15
16
17
18
19
20
»