Skip to content

rpmcruz/igrabcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iGrabCut

Interactive image segmentation tool using GrabCut.

The code is less than 100 lines. It is a little tool that combines the GrabCut algorithm with a simple interface for manual segmentation. It asks for which file(s) to segment (multiple files may be provided for batch segmentation), then you select the bounding box of the object to segment, and finally use mouse strokes (left-click=foreground, right-click=background) to guide the GrabCut algorithm. Just close the window or press enter/escape to go to the next image. The segmentations are saved in the same folder as the original images with the -seg.png suffix.

Animated screenshot

Usage: Download and run python main.py.

Limitations: The tool was developed for a specific application where the images are grayscale and there is only one object to segment. You need to adjust accordingly.

Credits:

About

Interactive segmentation tool using GrabCut

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages