Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何在PIL中从ImageDraw中获取图像?
我在我的项目中使用 PIL 并且有 ImageDraw 对象 我想获取在 ImageDraw 对象上绘制的图像 我如何获取图像 这是你想要的 from PIL import Image ImageDraw im Image new RGBA
python3x
pythonimaginglibrary
PIL - 需要抖动,但限制调色板会导致问题
我是 Python 新手 正在尝试使用 PIL 来执行 Arduino 项目所需的解析任务 这个问题涉及到Image convert 方法以及调色板 抖动等选项 我有一些硬件能够一次仅显示 16 种颜色的图像 但它们可以指定为 RGB 三元
python
image
pythonimaginglibrary
dithering
PIL.Image.open和tf.image.decode_jpeg返回值的区别
我使用 PIL Image open 和 tf image decode jpeg 将图像文件解析为数组 但发现PIL Image open 中的像素值与tf image decode jpeg不一样 为什么会出现这种情况 Thanks 代
python
image
tensorflow
pythonimaginglibrary
在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
1
2
3
4
5
6
...20
»