[英]ModuleNotFoundError: No module named 'skimage.filters._sparse_cy'
当我使用功能 skimage.feature.greycomatrix,pycharm 错误: ModuleNotFoundError: No module named 'skimage.filters._sparse_cy'
,skimage 的版本:0.18.1 代码:
from skimage.feature import greycomatrix, greycoprops
import cv2
img_org = cv2.imread('train_video/frame/tr_123.jpg')
result = skimage.feature.greycomatrix(img_org, [1], [0, np.pi/2], levels=4)
Output:
Traceback (most recent call last):
File "D:/thomas/py_code/test_4.py", line 7, in
from skimage.feature import greycomatrix, greycoprops
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\skimage\feature_init_.py", line 3, in
from .canny import canny
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\skimage\feature_canny.py", line 18, in
from ..filters import gaussian
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\skimage\filters_init.py", line 12, in
from .thresholding import (threshold_local, threshold_otsu, threshold_yen,
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\skimage\filters\thresholding.py", line 14, in
from ._sparse import correlate_sparse, _validate_window_size
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\skimage\filters_sparse.py", line 2, in
from ._sparse_cy import _correlate_sparse_offsets
ModuleNotFoundError: No module named 'skimage.filters._sparse_cy'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.