我是python的新手,我想导入图像。
import numpy as np
from scipy.misc import imread, imsave, imresize
# Read an JPEG image into a numpy array
img = imread('Cover.jpg')
print(img.dtype, img.shape)
Run Code Online (Sandbox Code Playgroud)
但是我遇到以下错误:cannot import name 'imread'
我已经成功安装了numpy和scipy。
python ×1