My implementation of Grabcut: Interactive foreground extraction using iterated graph cuts, ACM SIGGRAPH 2004, without border matting.
- Python 3.6
- OpenCV
- NumPy
- scikit-learn
- python-igraph
grabcut.py
- Core implementation of the algorithm.messi5.jpg
- A copy of OpenCV's sample image.
python grabcut.py <filename>