imread is deprecated in scipy.misc; use imageio.imread instead.
imageio provides the same functionality as Scipy. But keep in mind that some arguments need to be changed (for detailed information please check here):
- Instead of
mode
, use thepilmode
keyword argument. - Instead of
flatten
, use theas_gray
keyword argument
References:
1. python - scipy.misc module has no attribute imread? - Stack Overflow
2. Transitioning from Scipy’s imread — imageio 2.9.0 documentation