Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
在python中将二维数组转换为彩色图像
我有这样的二维整数列表 list1 1 30 50 21 45 9 97 321 100 接下来我将把它转换为 numpy 数组 myarr np asarray list1 接下来我将使用 PIL 将其转换为图像 如下所示 img Ima
python
image
NumPy
pythonimaginglibrary
如何使用 python 在白色背景上裁剪图像?
我正在扫描旧照片 因此我有来自扫描仪的图像和白色背景 我的目的是拍照 去除白色背景 我怎样才能做到这一点 An example picture is the following 我的简单方法 import os import time fr
python
imageprocessing
pythonimaginglibrary
从内存中发送图像
我正在尝试为 Discord 机器人实现一个系统 该系统可以动态修改图像并将其发送给机器人用户 为此 我决定使用 Pillow PIL 库 因为它对于我的目的来说似乎简单明了 这是我的工作代码的示例 它加载一个示例图像 作为测试修改 在其上
python
Byte
pythonimaginglibrary
discordpy
如何在 Python 中将图像分割成多个部分
我正在尝试使用 PIL 将一张照片分成多块 def crop Path input height width i k x y page im Image open input imgwidth im size 0 imgheight im
python
image
split
pythonimaginglibrary
crop
Python - 如何将列表保存为图像?
我生成一个常规列表 是否可以将此列表保存为 JPEG 图像或 PNG 或其他格式 以便我可以打开图像并查看它 我目前正在尝试使用 python 成像库 PIL 来解决这个问题 这是可能的解决方案之一 使用以下方法创建一个空图像对象 Imag
image
list
python27
jpeg
pythonimaginglibrary
属性错误:类型对象“图像”没有属性“打开”
Exception in Tkinter callback Traceback most recent call last File C Python34 lib tkinter init py line 1482 in call retu
python
pythonimaginglibrary
创建圆形图像 PIL Tkinter
Currently I have a zoom feature in my application that works very well however I d like the actual zoom box to be a circ
python
userinterface
Tkinter
pythonimaginglibrary
PIL 不保存透明度
from PIL import Image img Image open 1 png img save 2 png 第一张图像具有透明背景 但是当我保存它时 透明度消失了 背景为白色 我究竟做错了什么 可能图像已被索引 PIL 中的模式 P
python
PNG
pythonimaginglibrary
Python PIL 由于某种原因无法打开 PDF
所以我的程序能够打开 PNG 但不能打开 PDF 所以我这样做只是为了测试 但它仍然无法打开 甚至是一个简单的 PDF 我不知道为什么 from PIL import Image with Image open r Adams K a pd
python
python27
pdf
pythonimaginglibrary
如何在 django ImageField 中验证图像格式
我们的项目使用Python 2 7 PIL 1 1 7和Django 1 5 1 有一个 ImageField 适用于许多图像格式 包括 bmp gif ico pnm psd tif 和 pcx 但是要求仅允许 png 或 jpg 图像
python
django
pythonimaginglibrary
枕头成像导入错误
我通过 pip 将 Pillow 3 0 0 安装到 32 位 Windows 7 PC 上的 Python3 5 上 从 PIL 导入图像 给我 File C Python 3 5 lib site packages PIL Image
python
pythonimaginglibrary
Python - 查找图像中对象的中心
我有一个具有白色背景和非白色对象的图像文件 我想使用 python Pillow 找到对象的中心 我在 C 中发现了类似的问题 但没有可接受的答案 如何找到物体的中心 https stackoverflow com questions 12
python
image
pythonimaginglibrary
将pillow Image对象转换为JpegImageFile对象
我裁剪了一张 jpeg 图像 但裁剪后的图像类型是
python
image
pythonimaginglibrary
crop
matplotlib 绘图,然后等待原始输入
我正在尝试打开一系列 png 图 我希望能够在屏幕上查看绘图 然后收到提示 等待我 按 Enter 按回车键后 应显示下一个图 我见过很多类似的问题 Matplotlib 强制绘图显示然后返回主代码 https stackoverflow
python
matplotlib
PNG
pythonimaginglibrary
如何提取图像中的表格
我想从图像中提取表格 这个 python 模块https pypi org project ExtractTable https pypi org project ExtractTable 与他们的网站https www extractta
python
opencv
scipy
pythonimaginglibrary
OCR
python中旋转图像:推断背景颜色
我使用以下 python 代码旋转图像 from PIL import Image img Image open banana jpg rotated img rotate 10 rotated save banana rotated jp
python
image
Colors
Rotation
pythonimaginglibrary
使用 PIL 合并图像时模式不匹配
我正在传递 jpg 文件的名称 def split image into bands filename img Image open filename data img getdata red d 0 0 0 for d in data L
python
pythonimaginglibrary
将图像转换为二进制流
我的应用程序有两个方面 一方面我使用 C 来使用 Pleora 的 EBUS SDK 从相机读取帧 当第一次接收到该流时 在将缓冲区转换为图像之前 我能够一次读取 16 位流 以便对每个像素执行一些计算 即每个像素都存在一个 16 位数据块
python
django
image
imageprocessing
pythonimaginglibrary
安装 Pillow 错误:安装脚本退出并出现错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1
当我尝试安装 Pillow 2 5 3 时 我收到错误 命令 x86 64 linux gnu gcc 失败 退出状态为 1 这是所发生事件的完整日志 http pastebin com 5k2TsyJY 我需要这个库作为另一个 pytho
python
Linux
gcc
pythonimaginglibrary
如何在 Python 中使用 PIL 将一张图像合成到另一张图像上?
我需要拍摄一张图像并将其放置到新生成的白色背景上 以便将其转换为可下载的桌面壁纸 所以这个过程是这样的 生成尺寸为 1440x900 的新的全白图像 将现有图像放在顶部居中 另存为单张图像 在 PIL 中 我看到ImageDraw对象 但没
python
imageprocessing
pythonimaginglibrary
1
2
3
4
5
6
...20
»