小编moh*_*mlo的帖子

将图像导入python:无法导入名称'imread'

我是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

10
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×1