kylberg / scribbletrace Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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!
Can we get sample code on how you're saving SVG files of these images?
Not sure when it changed, but in modern versions of scikit-image, files are loaded with skimage.io.imread()
rather than skimage.data.load()
. Everything else works. I'd make the change myself but honestly I have no idea how collaboration on these projects works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.