Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
matplotlib 中的低对比度图像(对比度拉伸)问题
当读取低对比度图像时 它会自动采用以下示例 In 1 from PIL import Image In 2 import numpy as np In 3 import matplotlib pyplot as plt In 4 img I
python
matplotlib
pythonimaginglibrary
从 GIF 提取帧到 PNG 时丢失数据?
当我尝试使用 fraxel 的答案时 http stackoverflow com questions 10269099 pil convert gif frames to jpg 在图像上http 24 media tumblr com
imageprocessing
ImageMagick
pythonimaginglibrary
tumblr
gif
如何使用PIL读取原始图像?
我有一个原始图像 其中每个像素对应一个 16 位无符号整数 我正在尝试使用 PIL Image fromstring 函数进行读取 如以下代码所示 if name main if len sys argv 4 print Error mis
python
image
imageprocessing
pythonimaginglibrary
python - 创建具有多种颜色的图像并添加文本
我正在尝试用 python 中的一些文本创建图像 例如 import PIL from PIL import ImageFont from PIL import Image from PIL import ImageDraw font Im
python
image
Drawing
pythonimaginglibrary
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
«
1
2
3
4
5
6
...20
»