https://github.com/shameempk/fast_seg
Fast Interactive Image Segmentation using Graph-cut.
https://github.com/shameempk/fast_seg
ciede2000 computer-vision image-segmentation opencv opencv-python
Last synced: about 1 year ago
JSON representation
Fast Interactive Image Segmentation using Graph-cut.
- Host: GitHub
- URL: https://github.com/shameempk/fast_seg
- Owner: shameempk
- License: other
- Created: 2017-06-29T07:29:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-19T21:50:04.000Z (over 1 year ago)
- Last Synced: 2025-05-06T22:15:23.186Z (about 1 year ago)
- Topics: ciede2000, computer-vision, image-segmentation, opencv, opencv-python
- Language: Python
- Size: 44.9 KB
- Stars: 14
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Dependencies:
1. System wide dependencies
* Python 3.5+
* `libopencv-dev`
* `python3-tk` (to show the result window)
2. Project dependencies
(Recommending python virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs)
1. All dependencies are enlisted in requirements.txt
Install them using : `pip install -r requirements.txt`
## Executing the code:
1. Run the main file using python3: `python3 fast_seg.py -i `
* Will provide a minimal GUI to mark the seed pixels. While marking, switching between "background" and "object" pixels are done using keys 'b' and 'o' respectively. By default GUI initializes in object mode. Object is marked with "red" markings and Background with "blue".
* Use `python3 fast_seg.py -h` for help
2. Press ESC after marking the seeds.
3. Output window will provide the results.
4. Output image will be written in running folder, named "out.png"
For any other inquiries file an issue at https://github.com/shameempk/fast_seg .
## Research paper:
Research paper can be downloaded from [here](https://www.ijitee.org/wp-content/uploads/papers/v8i8/H7423068819.pdf).
If you find fast_seg useful please cite this paper in your work:
```
@misc{
naik2019fast,
title={Fast Interactive SuperpixelBased Image Region Generation},
url={https://www.ijitee.org/wp-content/uploads/papers/v8i8/H7423068819.pdf},
journal={IJITEE},
publisher={International Journal of Innovative Technology and Exploring Engineering},
author={Naik, Dinesh and Shameem, Muhammed},
year={2019},
month={Jun}
}
```