我已经成功安装了 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)
答案 0 :(得分:1)
它的名字是greycomatrix。语法是
从 skimage.feature 导入 greycomatrix、greycoprops