This is a simple interactive image segmentation app written by python opencv and pyqt.
This app applys Grabcut algorithm in opencv for matting images. Grabcut is an improved version of Graphcut algorithm. Check these papers(paper1, paper2) for detail information~~
The gui part is mostly from this great work labelImg. It is a very good example for pygt beginner!
- Ubuntu 16.04
- python3
- pyqt5
- cv2
python app.py
- Auto resize images in mainwindow according to mouse movement
- Image item switch
- Rect edit and auto matting
- Show only one Rect every selection