Cannot import scipy.misc.imread

后端 未结 8 1191
南笙
南笙 2020-12-24 04:55

I\'ve seen this problem before with other people, but haven\'t found a fix.

All I\'m trying to do is:

from scipy.misc import imread

and

8条回答
  •  悲&欢浪女
    2020-12-24 05:09

    Scipy deprecated the image I/O functionality in v1.0 :

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

    Using the imageio module:

    img = imageio.imread(fina)
    

    There may be some differences. See https://imageio.readthedocs.io/en/stable/scipy.html

提交回复
热议问题