Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sikimage no longer uses this context/command structure? #1

Open
SATResearch opened this issue Mar 2, 2021 · 1 comment
Open

sikimage no longer uses this context/command structure? #1

SATResearch opened this issue Mar 2, 2021 · 1 comment

Comments

@SATResearch
Copy link

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!

@ithinkido
Copy link
Contributor

ithinkido commented Mar 29, 2021

The changes to Skimage file import are causing this issue. I will add a PR with a fix
#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants