3

I have successfully installed scipy, numpy, and pillow, however I get error as below

ImportError: cannot import name 'imread'

2 Answers2

0

Are you following the same steps?

import scipy.misc
img = scipy.misc.imread('my_image_path')

# To verify image is read properly.
import matplotlib.pyplot as plt
print(img.shape)
plt.imshow(img)
plt.show()
Prasad
  • 5,946
  • 3
  • 30
  • 36
0

imread and imsave are deprecated in scipy.misc

Use imageio.imread instead after import imageio.

For saving - Use imageio.imsave instead or use imageio.write

For resizing use skimage.transform.resize instead after import skimage

Malgo
  • 1,871
  • 1
  • 17
  • 30