A scikit-image RAG example.
# create a virtural environment (recommended)
$ pip install -r requirements.txt
$ python main.py [input image path] [number of superpixel] [compactness] [threshold for RAG]
It should locate at the directory as same as your input image
This work is originated from A SIMPLE PROGRAMMER'S BLOG. You can visit his work in the following link: