Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
尽管安装了 PIP,Python Pillow(或 PIL)仍无法工作
我正在关注文档 https pillow readthedocs io en stable 我用 pip 成功安装了 Pillow 但是 当我尝试导入Image我可以的功能 a 仅从 PIL 导入 b 只得到没有模块的错误PILc 出现没有
python
pythonimaginglibrary
Python PIL加载抛出AttributeError:'NoneType'对象没有属性'read'
我已经为这个错误苦苦挣扎了好几天 但进展甚微 基本上 我试图读入图像文件 然后使用 PIL 对其执行特定操作 我的最终目标是执行 PIL 粘贴操作 然而 每当我加载图像 然后调用它的 load 方法 诸如 show paste resize
python
load
pythonimaginglibrary
如何保存带有负值的PIL图像
我正在尝试使用 PIL 保存具有负值的图像 但是 保存后 图像文件的所有负值均被剪裁为 0 from PIL import Image import numpy as np generate random image for demo im
python
image
imageprocessing
pythonimaginglibrary
更改PIL模块中的图像颜色
我正在尝试改变颜色的强度以获得不同颜色的图像 import PIL from PIL import Image from PIL import ImageEnhance from PIL import ImageDraw read imag
python3x
Colors
pythonimaginglibrary
Python 中的图像创建和字体
我利用 PIL 在 python 中创建了一组图像 除此之外 我还实现了 textwrap 以便将文本添加到我创建的图像上 但是它们并不十分完美 首先 下面是我创建的三个图像示例 这三个图像具有不同的宽度 但我希望它们都具有相同的宽度 而高
python
Text
pythonimaginglibrary
如何在 pytorch 中更改输入图片的尺寸?
我制作了一个卷积神经网络 我希望它获取输入图片和输出图片 但是当我将图片转换为张量时 它们的尺寸错误 RuntimeError Expected 4 dimensional input for 4 dimensional weight 20
如何在Mac上将PIL安装到Python 3.5?
我对 Python 安装非常陌生 并尝试安装 PIL 我有一种感觉它们被安装到了错误的目录 PIP 似乎已经安装好了 皮查姆 说 Try to run this command from the system terminal Make s
python
MacOS
pythonimaginglibrary
找到屏幕上的颜色位置?
我想使用 pyautogui 单击屏幕上的特定颜色 但为此我需要它的位置 并且我找不到有关该主题的任何有用信息 我正在尝试制作一个钢琴块自动点击器 为此我考虑过识别块的颜色并单击它 您可以使用以下命令找到颜色位置pyautogui impo
python
pythonimaginglibrary
opencv
pyautogui
查找 PIL / PILLOW 正在使用哪个 libjpeg
我收到一个错误 在两台不同的计算机上读取相同的 lena jpg 文件会产生两个不同的校验和 更奇怪的是 当我运行 md5sum lena jpg 时 我在两台机器上得到相同的 md5 和 因此文件是相同的 此外 当我加载 png 而不是
python
libjpeg
pythonimaginglibrary
逐行读取图像像素
我一直在开发一个项目 该项目需要我的代码获取图像的像素数据并重建它 以另一种形式 但是当我尝试使用像素数据创建图像时 结果发现所有像素都在同一行 这是我的代码 pixels image getdata img array np array
python
image
NumPy
pythonimaginglibrary
将图像大小调整到给定边界区域的最简单方法是什么?
我想创建一个函数 例如 def generateThumbnail self width height Generates thumbnails for an image im Image open self file im thumbna
python
Imaging
imageresizing
pythonimaginglibrary
使用 PIL 和 SKIMAGE 打开 PGM 文件时出错
我有以下图像文件 Image 我使用 PIL 和 Skimage 打开它 但出现以下错误 首先使用 PIL 尝试使用和不使用 trucate 选项 代码 from PIL import Image ImageFile ImageFile L
python3x
pythonimaginglibrary
scikitimage
PGM
使用 PIL 在 python 中打开并显示 .png 文件
我需要打开一个 png 图像文件并显示它 我可以使用 PIL 打开该文件 from PIL import Image f Image open file png show 我收到一条错误消息 错误阻止了视频或图像的显示 错误代码 0x800
python
pythonimaginglibrary
Python程序只能在pycharm中运行,不能在其他地方运行
当我在 pycharm 中运行该脚本时 该脚本工作正常 但如果我从其他地方运行它 它就不起作用 当我通过 cmd 运行它时 它给我这个错误 Traceback most recent call last File C Users main
python
python3x
pycharm
pythonimaginglibrary
virtualenv
PIL - 在图像上绘制多行文本
我尝试在图像底部添加文本 实际上我已经做到了 但如果我的文本比图像宽度长 它会从两侧剪切 为了简化 我希望文本在多行中 如果是 比图像宽度长 这是我的代码 FOREGROUND 255 255 255 WIDTH 375 HEIGHT 50
python
image
Text
pythonimaginglibrary
Python PIL 根据颜色删除图像的部分
我正在尝试在 python 中使用 PIL 来根据像素 RGB 值删除部分图像 从文档来看 该功能点似乎可以满足我的要求 但是我很难遵循文档 如果我想将蓝色值小于 100 的所有像素更改为白色 实现此目的最简单的方法是什么 像下面这样的东西
python
pythonimaginglibrary
如何在 Python 中使用 Pillow 库向 PNG 图像添加轮廓/描边/边框?
我正在尝试使用 Pillow python imaging library Python 库在我的 png 图像周围创建轮廓 描边 边框 选择任何颜色和宽度 您可以在这里看到原始图像和我想要的结果 由手机应用程序创建 https i sta
python
pythonimaginglibrary
Border
imagemanipulation
使用python分割多页tiff图像
我有一个功能可以分割多页 tiff from PIL import Image ImageSequence im Image open Sample tiff for i page in enumerate ImageSequence It
python
pythonimaginglibrary
Python3 PIL Pillow Ubuntu 安装
我正在运行 Ubuntu 14 04 LTS 我安装了 Python 2 7 和 Python 3 4 在 Linux 中安装 Python 包方面我还算新手 我只是想安装并访问PIL sPython 3 4 中的图像库 据我了解 这是通过
Ubuntu
pythonimaginglibrary
Python34
installation
使用 Python PIL 库将图像垂直淡入透明
我已经查看了教程 其他 stackoverflow 问题和 PIL 文档本身 但我仍然不确定如何去做 我想在 y 轴下方约 55 处开始垂直淡化图像 并在约 75 处使图像完全透明 保留图像的完整高度很重要 即使最后 25 左右应该完全透明
python
PNG
transparency
pythonimaginglibrary
«
1 ...
13
14
15
16
17
18
19
...21
»