Code Bug Fix: Error: “scipy.misc module has no attribute imread” in Anaconda Jupyter

Original Source Link

When trying to use the line >> photo_data = misc.imread('./wifire/sd-3layers.jpg'), I receive the error output above.

I did everything as in the instruction video before running it, i.e.

%matplotlib inline; 
import numpy as np;
from scipy import misc;
import matplotlib.pyplot as plt
from skimage import data

The folder is in the correct working directory (user 2), so the isssue seems to lie in the imread function missing. Any ideas?

The docu says:

imread is deprecated! imread is deprecated in SciPy 1.0.0, and will
be removed in 1.2.0. Use imageio.imread instead.

imageio.imread()

Tagged : / /

Leave a Reply

Your email address will not be published. Required fields are marked *