2020欧洲杯手机版注册

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [python-imaging-library]

2020欧洲杯手机版注册The Python Imaging Library (PIL) provides the Python language with a de-facto standard foundation for image work. PIL’s API is lightweight but semantically consistent; it furnishes a range of comfortably Pythonic tools throughout much of the imaging lexicon: processing, analysis, compression and codec abstraction, etc. – all of which builds upon a bespoke and readily extensible library structure.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Cloth simulation using python

I have a 3d mesh of .obj format and I need to turn it into a cloth simulation using python.For eg : I have a plane and I need to turn it into a table cloth.I have seen this being done in Blender . ...
0
votes
1answer
16 views

How to identify the CMYK images from image set in python

I am having a huge set of images in the file. I am trying to check whether the image in RGB or CMYK. I am trying to this reading the number of channels , as RGB will have 3 channels and CMYK will ...
0
votes
0answers
12 views

Can't create a big image with PIL

I am trying to create a big image:result_image = Image.new( 'RGB', (29098,22184), (0, 0, 0))Results in File "D:\PythonProjects\xyz.env\lib\site-...
0
votes
0answers
25 views

How can I compress jpegs in Python more efficiently?

I'm working with thousands of large image files in a regularly updated library. The following script does the job (on average reduces my file size ~95%) but costs me around 25 seconds to compress one ...
0
votes
1answer
16 views

How can I sort a list of images by image height? (Python)

how can I sort a list of images by image height?List for example:list = ['img1.png', 'img2.png','img3.png']The height of img1 is 150The height of img2 is 75The height of img3 is 329The ...
0
votes
0answers
17 views

I didn't get the image printed from PIL but I got it from the matplotlib why?

from PIL import Imageimport numpy as npw, h = 512, 512data = np.zeros((h, w, 3), dtype=np.uint8)data[0:256, 0:256] = [255, 0, 0] # red patch in upper left img = Image.fromarray(data, 'RGB')img....
-1
votes
0answers
23 views

Imaging Core has no attribute save

I am following this link:How to get the font pixel height using PIL' ImageFont?And I need to get just the text part of image and then resize it. This is what I have done to get the image:from ...
3
votes
1answer
59 views

OpenCV reads an image as a 3-channel image while PIL reads the same image as a 1-channel image

I'm trying to figure out the NYU-v2 for semantic segmentation dataset in this Repository.I'm having a hard time trying to understand how the image labels have been stored.For example, given the ...
1
vote
1answer
28 views

How to load a 16-bits/channel RGB(A) image with PIL?

I'm trying to load a 16 bits colors RGBA image with PIL.I downloaded the image pnggrad16rgba.png from the following link:http://www.fnordware.com/superpng/samples.htmlI checked that it has ...
0
votes
2answers
36 views

How to merge cropped images back to original image?

I have an image of size 10980x10980 and I cropped this image by using python script into 256x256 size. the script I used for cropping is :from PIL import Image infile = 'Amritsar_T43SDR.tif' ...
0
votes
1answer
26 views

Saving an Image stored in BytesIO in pillow

I have an image stored as BytesIO of Pillow and I need to save it to a file with some header information (containing textual attributes) that I need to add specific to my problem. I need the bytes to ...
0
votes
1answer
21 views

Using location_once_scrolled_into_view and want to center

I am using location_once_scrolled_into_view to scroll to specific elements on a web page. After I find these elements, I am taking screenshots of them. The problem I am running in to is that the page ...
1
vote
0answers
16 views

How to fit text to bounding box in Python

I have a bounding box that has following dimensions:{"name":"rect","x":169,"y":81,"width":158,"height":35}This is the true image:ground truthThis is the image that I am trying to type text ...
-1
votes
0answers
25 views

What is the best way to edit images in python? [closed]

I would like to create a python script, that is able to edit images depending on their size. What I want to achieve in particular and what I want to get in the end, is the Background image + an ...
1
vote
0answers
10 views

Adding a resized image to a frame

so I'm resizing an image and adding it to a frame called playingSpace.Here's that piece of code :# Opening up the image fileimg = Image.open("images/gameBoard_pic.jpg")# Resizing the image ...

15 30 50 per page