You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get this code to work. I keep getting this error: AttributeError: module 'skimage.data' has no attribute 'load'
when this line is reached: img = skimage.data.load('C:/Users/GustafK/source/repos/github/kylberg/ScribbleTrace/MagrittePipe.jpg',as_gray=True)
(of course, I'm using my own directory correctly)
I brought this up on the image.sc forum and was told the code should be like this: You need to use
from skimage import io
img = io.imread(filename)
to load the image. And they told me to look at skimage v0.18.0 docs for examples on how to use skimage.data.
I tried fixing the code based on those docs, but I'm not succeeding. Maybe it's a different problem? Does this use a different version of Python than I'm using maybe? I would really like to use this code to process images. Please help!
The text was updated successfully, but these errors were encountered:
I cannot get this code to work. I keep getting this error:
AttributeError: module 'skimage.data' has no attribute 'load'
when this line is reached:
img = skimage.data.load('C:/Users/GustafK/source/repos/github/kylberg/ScribbleTrace/MagrittePipe.jpg',as_gray=True)
(of course, I'm using my own directory correctly)
I brought this up on the image.sc forum and was told the code should be like this: You need to use
to load the image. And they told me to look at skimage v0.18.0 docs for examples on how to use skimage.data.
I tried fixing the code based on those docs, but I'm not succeeding. Maybe it's a different problem? Does this use a different version of Python than I'm using maybe? I would really like to use this code to process images. Please help!
The text was updated successfully, but these errors were encountered: