无法从“skimage.feature”导入名称“graycomatrix”

时间:2021-05-14 16:22:26

标签: jupyter-notebook

我已经成功安装了 skimage 包,但是当我尝试导入

from skimage.feature import graycomatrix, graycoprops

导致错误提示:

cannot import name 'graycomatrix' from 'skimage.feature' (/Users/ain/opt/anaconda3/lib/python3.8/site-packages/skimage/feature/__init__.py)

1 个答案:

答案 0 :(得分:1)

它的名字是greycomatrix。语法是

从 skimage.feature 导入 greycomatrix、greycoprops