python-imageio Questions

4

How do I make an mp4 video from a set of png images with the module imageio? I've tried this: import imageio import glob writer = imageio.get_writer('test.mp4', fps=20) for png_path in glob.glob('...
Craig asked 12/12, 2017 at 14:32

3

Is there a way to compress the gif while making it with imageio in python? I am making gif with about 200 images and the final file is 30MB. I would prefer if it is 5-10 MB. Anyway the images are m...
Doeskin asked 31/3, 2017 at 12:21

4

Trying to match two images to find out the scores between them.But it shows some dimension error.Unable to fix the issue.My code is given below: from skimage.measure import compare_ssim #import ar...

2

Solved

I load an image with img = imageio.imread('hello.jpg'). I want to return this numpy array as an image. I know I can do return FileResponse('hello.jpg'), however, in the future, I will have the pict...
Dactylic asked 26/1, 2021 at 14:29

1

Consider an image img of type imageio.core.util.Array. The shape of img is (256, 256, 3). I want to resize it to (128, 128, 3). I tried at least the following three: img.resize(img_res, pilmode=&qu...

6

Solved

I am trying to read a png file into a python-flask application running in docker and am getting an error that says ValueError: Could not find a format to read the specified file in mode 'i' i...
Jacquie asked 26/1, 2019 at 14:12

1

I have two GIF files, and I want to combine them horizontally to be shown beside each other, and they play together. They have equal frames. I tried a lot online for a solution, but didn't find som...
Ahvenanmaa asked 25/7, 2018 at 11:23

2

I'm simply trying to convert and EXR to a jpg image however my results are turning out to be very dark. Does anyone know what I'm doing wrong here? I'm normalizing the image values and then placing...
Capias asked 7/6, 2018 at 18:37

1

Solved

I am working with VOC2012 dataset. The input image is in PNG format which has a shape of (375, 500, 4) when I use imageio to open the image. When I use PIL to open the image, then suddenly the shap...
Cornwall asked 12/7, 2019 at 15:37

2

Solved

I have tried reading a lot of examples online and found imageio is the perfect package for it. Also found examples written in here. I have just followed the example as shown and tried the followi...
Chantress asked 19/12, 2016 at 17:44

2

Solved

The workflow of my function is the following: retrieve a jpg through python get request save image as png (even though is downloaded as jpg) on disk use imageio to read from disk image and transf...
Tryst asked 13/3, 2019 at 22:19

1

Solved

I have a series of high resolution images I want to convert to an MP4 file in Python(3.6) using ImageIO. Is there any way I can do it without compression or losing quality? Currently I use the co...
Poppied asked 23/10, 2018 at 12:8

3

I'm trying to write a Python program that uses MoviePy on Mac OS 10.11.16 to convert an MP4 file to GIF. I use: import moviepy.editor as mp and I get an error saying I need to call imageio.plugi...
Airspeed asked 2/8, 2017 at 17:19

1

Solved

Basically I am using following piece of code to make gif out of images, my images are png with transparent background but the gif is with black background. I dont know how to make the gif with tran...
Rebroadcast asked 20/10, 2017 at 13:37

0

I am using imageio with Python. It seems to have a cleaner API than PIL and consorts, so I would like to continue using imageio instead of other tools. I know how to get image size: height, width...
Burnout asked 20/5, 2018 at 8:43

2

Solved

I have an existing code segment reading image using scipy.misc imref = misc.imread(self.file_image, False, "RGB") If I would like to replace it with imageio, how to do that, can I just use imre...
Clarinda asked 6/4, 2018 at 22:9

1

I'm working in python with some images and I'm trying to convert a series of images with size = 961x509 into an MP4 movie file. I've already did this and it's working but I have a quite annoying pr...
Mccrea asked 27/10, 2017 at 13:40

1

Solved

I am reading an image in python with three different libraries imageio PIL.Image cv2. The output I am getting on reading image with each one of these libraries is different. For example On re...
Erbes asked 17/1, 2018 at 13:53

0

I'm using ImageIO's get_reader() function on a video in a context where the process doing this is going to be forked. This reader is then continually randomly indexed (using the get_data method). E...
Inspan asked 16/11, 2017 at 22:38

0

I'm using the following python code to generate a .gif file from about 3000 .png files. But the .gif file has only about 1000 .png files. Why is the .gif not having all the .png files? Is there a l...
Prescriptive asked 20/6, 2017 at 10:33
1

© 2022 - 2024 — McMap. All rights reserved.