Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
将 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
在 Django 中出现无效图像错误,但 PIL 已安装并通过所有测试
所以我终于在RHEL5上成功安装了PIL 经历了很多困难 Django 开发版本 和Python 2 6安装在 opt python2 6 运行 selftest py 显示一切似乎都已正确安装 python2 6 selftest py
python
django
pythonimaginglibrary
djangomodels
包(Python PIL/Pillow)已安装,但我无法导入它
我想做一些图像处理 但遇到了问题 导入枕头模块似乎不起作用 我在这里找到了一个简单的脚本来检查安装了哪些软件包 我找到了它 但导入它似乎不起作用 这是我尝试运行的代码 import pip installed packages pip ge
python
pip
package
pythonimaginglibrary
“tuple”对象不支持项目分配
我正在使用 PIL 库 我正在尝试使图像看起来更红 这就是我所拥有的 from PIL import Image image Image open balloon jpg pixels list image getdata for pixe
python
pythonimaginglibrary
使用 PIL 的 Image.fromarray 时出现 KeyError: ((1, 1, 1280), '|u1') - PIL
我有这个代码 from PIL import Image import numpy as np img Image open img jpg Image fromarray np array np mean i axis 1 astype
python
image
NumPy
pythonimaginglibrary
Pixel
如何在PIL中减少png图像文件大小
我已经使用 PIL 将 JPG BMP 文件转换并调整大小为 PNG 格式 我可以轻松调整大小并将其转换为 PNG 但新图像的文件大小太大 im Image open input jpg im resize im resize 400 40
python
django
pythonimaginglibrary
如何将 EXIF/其他元数据插入到存储在内存缓冲区中的 JPEG 中?
我使用 Python OpenCV 创建了一个 JPEG EXIF 数据在此过程中丢失 并且在调用 imwrite 时显然无法重新添加 参考 在python中使用opencv编辑图像时无法保留图像exif数据 https stackover
python
opencv
pythonimaginglibrary
jpeg
EXIF
使用cv2.imread:“
returned NULL without set an error”,好像无法打开图片或获取数据
这是我的代码中出现问题的部分 它应该计算图片中绿色像素的数量 img Image open path tif BLACK MIN np array 0 20 20 np uint8 BLACK MAX np array 120 255 25
python
opencv
pythonimaginglibrary
imread
如何从 django 图像字段到 PIL 图像并返回?
给定 django 图像字段 如何创建 PIL 图像 反之亦然 简单的问题 但很难谷歌 我将使用 django imagekit 的处理器来旋转已存储为模型属性的图像 edit In 41 m image 1 class Out 41 dj
django
pythonimaginglibrary
ImageField
将 PIL 图像转换为字节数组?
我有一个 PIL 图像格式的图像 我需要将其转换为字节数组 img Image open fh mode r roiImg img crop box 现在我需要roiImg作为字节数组 感谢大家的帮助 终于解决了 import io fro
python
image
Arrays
pythonimaginglibrary
如何使用 Python 裁剪通过鼠标单击选择的区域?
我正在使用 Matplotlib 和 PIL 使用 python 需要查看图像选择并剪切我必须处理的区域 只留下所选区域的图像 我已经知道如何使用 pil 剪切 imagens 使用im crop 但是我如何选择坐标来通过鼠标单击裁剪图像
python
imageprocessing
matplotlib
pythonimaginglibrary
使用 Python 图像库 (PIL) 标准化一组图像的直方图(亮度和对比度)
我有一个脚本 它使用 Google Maps API 下载一系列大小相等的方形卫星图像并生成 PDF 图像需要事先旋转 我已经使用 PIL 这样做了 我注意到 由于光线和地形条件不同 有些图像太亮 有些图像太暗 生成的pdf结果有点难看 在
python
imageprocessing
pythonimaginglibrary
brightness
contrast
PIL 改变颜色通道强度
我想制作一个颜色选择器 它可以重新着色 png 纹理 同时保留 python3 中的透明度 我只希望图像的较亮部分重新着色 但也保持渐变 我能想到的唯一选择是调整颜色通道强度 但是我在 PIL 文档中没有找到类似的内容 如何更改颜色通道强度
python3x
imageprocessing
pythonimaginglibrary
导入 _imaging 时 DLL 加载失败:
我正在尝试运行我的 Python 程序 这些是我要导入的模块 从 tkinter 导入 从 functools 导入部分将 numpy 导入为 np 导入 matplotlib matplotlib use TkAgg 从 matplotl
python
matplotlib
dll
CMD
pythonimaginglibrary
PIL:将模式“I”的图像转换为“RGB”会产生全白图像
据我所知 这个问题末尾的图像是模式 I 的 PNG 它代表 索引 我正在尝试创建一个缩略图 并使用 PIL 将其保存为 JPG 然而 我是否离开了mode独自一人 PIL 不会让我错误地调整它的大小unable to generate th
PNG
pythonimaginglibrary
zlib
Python EXIF找不到拍摄日期信息,但通过Windows属性查看时存在
我需要按拍摄日期提取和组织照片 Windows 10 Python 2 7 我一直在这样做 from PIL import Image def get date taken path return Image open path getex
python
pythonimaginglibrary
EXIF
为什么 pytesseract 导致 AttributeError: 'NoneType' 对象没有属性 'bands'?
我正在尝试开始使用 pytesseract 但正如你在下面看到的 我遇到了问题 我发现人们遇到了似乎相同的错误 他们说这是 PIL 1 1 7 中的错误 其他人说这个问题是由于 PIL 懒惰造成的 需要强制 PIL 加载图像im load
python27
pythonimaginglibrary
OCR
«
1
2
3
4
5
6
...20
»