Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
App Engine、PIL 和叠加文本
我正在尝试在 GAE 上的图像上覆盖一些文本 现在他们公开了 PIL 库 这应该不是问题 这就是我所拥有的 它有效 但我不禁认为我应该直接写入背景图像 而不是创建单独的覆盖图像然后合并 我可以用吗Image frombuffer http
python
image
googleappengine
pythonimaginglibrary
如何使用 RGB 元组列表在 PIL 中创建图像?
假设我有一个像素列表 表示为具有 3 个 RGB 值的元组 列表如下list im getdata 像这样 0 0 0 255 255 255 38 29 58 如何使用这种格式的 RGB 值 每个元组对应一个像素 创建新图像 感谢您的帮助
python
pythonimaginglibrary
使用 PIL 对图像进行着色,同时保持透明度?
好吧 情况是这样的 我想使用 Python 图像库来 主题化 图像 如下所示 Theme color 33B5E5 IN OUT 我使用 ImageMagick 命令得到了结果 convert image png colorspace gr
python
image
transparency
pythonimaginglibrary
colorize
如何将灰度图像转换为像素值列表?
我正在尝试创建一个 python 程序 它采用灰度 24 24 像素图像文件 我尚未决定类型 因此欢迎提出建议 并将其转换为从 0 白色 到 255 的像素值列表 黑色的 我计划使用这个数组来创建一个MNIST http yann lecu
python
image
pythonimaginglibrary
MNIST
如何在Python 3.7中使用Pygame显示用Pillow加载的图像?
我使用以下命令将图像导入到我的项目中 from PIL import Image myImage Image open myImageDirectory png 所以 myImage 现在作为 png 文件导入 但我想使用 Pygame 将
python
Pygame
PNG
pythonimaginglibrary
python37
如何使用Python图像库(PIL)突出显示图像的一部分?
如何突出显示图像的一部分 位置定义为 4 个数字的元组 你可以想象它就像我有电脑主板的图像 我需要突出显示例如CPU插槽所在的部分 请注意 对于 Python 3 您需要使用pillow https pypi org project Pil
python
image
pythonimaginglibrary
highlight
使用 Python/PIL 比较(相似)图像
我正在尝试计算相似 read 编辑距离 的两个图像 使用 Python 2 6 和 PIL 我计划使用python levenshtein http pypi python org pypi python Levenshtein 0 10
python
pythonimaginglibrary
fuzzylogic
fuzzycomparison
模块 PIL 没有属性“重新采样”
我之前运行过相同的代码 带有我需要的包 并且它有效 不确定现在发生了什么 这显示错误 AttributeError module PIL Image has no attribute Resampling 可能这是一个小问题 但我无法弄清楚
python
pythonimaginglibrary
resampling
保存图片到mongodb
我正在尝试使用龙卷风 石油和 mongodb 来做到这一点 avat self request files avatar 0 body nomfich self request files avatar 0 filename try ima
MongoDB
pythonimaginglibrary
tornado
Python 中丢弃图像时出现内存泄漏
我目前正在用 Python 编写一个简单的棋盘游戏 我刚刚意识到当图像重新加载时 垃圾收集不会从内存中清除丢弃的位图数据 仅当游戏启动或加载或分辨率更改时才会发生这种情况 但它会增加消耗的内存 所以我不能让这个问题得到解决 重新加载图像时
python
memoryleaks
python3x
Tkinter
pythonimaginglibrary
tkinter.ttk.Treeview根节点图标/图像不出现
Problem 我无法让图标图像出现在 tkinter ttk Treeview 中根节点旁边 下面是我使用的测试代码 它执行时没有错误 但图像没有出现在根节点的左侧 我尝试过使用图像文件的完整路径名 但这不起作用 另外 我尝试使用 PIL
image
python3x
treeview
pythonimaginglibrary
ttk
Bradley-Roth 自适应阈值算法 - 如何获得更好的性能?
我有以下图像阈值代码 使用 Bradley Roth 图像阈值方法 from PIL import Image import copy import time def bradley threshold image threshold 75
python
python27
NumPy
imageprocessing
pythonimaginglibrary
从 OpenCV 到 PIL 的转换不准确
当我将图像从 PIL 转换为 OpenCV 时 颜色略有变化 from PIL import Image import cv2 import numpy as np image cv2 imread 1 jpg image1 Image o
python
opencv
pythonimaginglibrary
如何使用 Python 和 Pillow 将此索引 PNG 转换为灰度并保持透明度?
我正在尝试使用 Python Pillow 将图像转换为灰度 我在大多数图像中都没有遇到困难 但是 在使用不同图像进行测试时 我发现了 BeeWare 项目中的这个徽标 我知道它已使用某些图像编辑器进行了进一步编辑 并使用 ImageOpt
python3x
PNG
transparency
pythonimaginglibrary
alphatransparency
Python ImportError:无法在 virtualenv 中导入名称“_imagingtk”
我想开始使用枕头 但遇到了一些问题 起初 我以为我可以简单地pip install pillow 所以我激活了我的 virtualenv 并做到了这一点 当它不起作用时 我意识到我需要为枕头安装一些依赖项 安装 http pillow re
python
Tkinter
virtualenv
Python34
pythonimaginglibrary
如何设置本地Python库目录/PYTHONPATH?
今天在尝试编写一个使用 PIL 的 Python 脚本的过程中 我发现我的本地计算机上似乎没有它 OS X 10 5 8 默认安装 2 5 Python 所以我跑 easy install prefix usr local python p
python
MacOS
path
pythonimaginglibrary
easyinstall
将 numpy.array 对象转换为 PIL 图像对象
我一直在尝试使用 Image fromarray 将 numpy 数组转换为 PIL 图像 但它显示以下错误 回溯 最近一次调用最后一次 文件 C Users Shri1008 Saurav Das AppData Local Progra
python
NumPy
pythonimaginglibrary
Python:将 GIF 帧转换为 PNG
我对 python 很陌生 试图用它来将 GIF 的帧分割成 PNG 图像 Using this GIF http www videogamesprites net FinalFantasy1 Party Before Fighter Fr
python
PNG
pythonimaginglibrary
animatedgif
ValueError:在PIL中混合图片时图像不匹配
我一直在用 python 搞乱 看看是否可以将两张图片 混合 在一起 我的意思是 图像是透明的 您可以同时看到两张图片 如果这仍然没有意义 请查看此链接 只有我会混合图片和图片而不是 gif https cdn discordapp com
python
pythonimaginglibrary
Python:如何创建一个包含图像中每个像素信息的数组?
例如 棋盘的 3 像素 x 3 像素 jpeg 图像应该类似于 000000 FFFFFF 000000 FFFFFF 000000 FFFFFF 000000 FFFFFF 000000 我觉得我可能需要下载 PIL 但我无法从他们的网站
python
Arrays
pythonimaginglibrary
Pixel
1
2
3
4
5
6
...19
»