Skip to content

Files

Latest commit

 

History

History

Foreground Extraction

Foreground extraction

This python script will allow us to extract foreground from an image using Grabcut algorithm.

Setup Instructions

Install python3

sudo apt-get install python3

Install pip (package installer for python)

sudo apt-get install python3-pip

Install Numpy library with pip

pip3 install numpy

Install OpenCV library with pip

pip3 install opencv-python

Install tkinter library

sudo apt-get install python3-tk

Details/Output

User is expected to select an image and mark a rectangle around the foreground that they wish to extract. The script then runs and the extracted foreground using Grabcut algorithm is then displayed and saved.

Author

Github: invigorzz313