Imageio is a Python library that provides an easy interface to read and write a wide range of image data including animated images, volumetric data, and scientific formats. Make to use this tag for question related to it.
Questions tagged [python-imageio]
191 questions
0
votes
1 answer
Writing to s3 using imageio and boto3
I want to write images to aws s3. As a video plays i am trying to process images through some functions and then when its done I wish to store it to a specific path. imageio directly checks the extension in the name and writes the image for the…

Akshay Hazari
- 3,186
- 4
- 48
- 84
0
votes
0 answers
Why is my gif missing png files after 753 iterations
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 limit to the number of .png files I can combine to…

user77005
- 1,769
- 4
- 18
- 26
0
votes
2 answers
Python error : index out of bounds
I was curious about image processing with python, so I found this great library imageio,
I tried to manipulate the pixels of a picture and save them in a new file,
but i had some problems with the loops
this is what the code looks like
enter image…

Driss Ousti
- 11
- 3
-1
votes
1 answer
SyntaxError: can't assign to function call after switching from scipy to imageio?
Using imageio.imread instead of scipy.misc.imread (because it is depreciated) is giving me an issue. I want to perform something like this but using imageio:
for file_indexes in duplicates[:30]:
try:
plt.subplot(121),…

EverydayDeveloper
- 1,110
- 4
- 11
- 34
-1
votes
1 answer
How to convert from scipy.misc.imresize to imageio
Hi I'm running a slightly expensive aws... And trying to solve old scipy.imread to the new imagio.read standard.
In this file
https://github.com/ml5js/training-styletransfer/blob/master/src/utils.py
import scipy.misc, numpy as np, os, sys
def…

Blckpstv
- 117
- 3
- 17
-1
votes
1 answer
Caffe Issue : *** self._open(**self.request.kwargs.copy()) TypeError: _open() got an unexpected keyword argument 'as_grey'***
for j,y in enumerate(sorted(glob.glob('images/*'))):
z=net.predict([caffe.io.load_image(y)*255.0])[0]
While the following code on Python3, I am getting this output
* self._open(**self.request.kwargs.copy()) TypeError: _open() got an unexpected…

Akash
- 1
- 3
-1
votes
1 answer
How to create gif from different sized images(.png) in Python
I am using ImageIO to create a .gif file.
I have 3 .png images with different sizes as:
(width, length, rgb)
(2520, 1800, 3)
(3840, 1800, 3)
(1800, 1800, 3)
As its visible that 2nd image is too wide and its going out of the frame. Is it possible to…

Kush
- 41
- 3
-1
votes
3 answers
Image processing with single to multiple images
I have an Image showing below:
I need to crop the order using python coding. What I need is only the card. So I want to crop the border. How to do it??
This is the output I got using the code mentioned in the below comment.

Shaon Paul
- 153
- 1
- 2
- 14
-2
votes
1 answer
How to save photos to disk taken with imageio
This is a simple program that takes a photo from webcam. I want to know how to save the file to disk.
Any help would be appreciated.
import imageio as iio
import matplotlib.pyplot as plt
camera = iio.get_reader("")
screenshot =…

robotmr
- 21
- 4
-2
votes
1 answer
Why does loading a jpeg or jpg image changes it upon saving everytime?
The pixel values of jpeg and jpg changes even when I simply load an image and just save it.
The values kept on changing on consecutive runs.
This is not the case when I do the same to a png image.
I have demonstrated it using opencv and…

Sameer Ansari
- 1
- 1