Skip to content

Implementation of a simple web application for image background removal. Deployed with Streamlit - demo available!

License

Notifications You must be signed in to change notification settings

lucasdevit0/Background-Removal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Background Removal

This project is an end-to-end image background removal web application.

Development Pipeline

The development followed the pipeline below, simulating an actual client deliverable. Requirements, planning and deliverable documents can be found here. Development inspired by computervisioneng

Banner

Web Application

Deployed with Streamlit, the web app lets users upload image files and download the same image with no background.

Open in Streamlit

Banner

Background Removal

The backbone for the background removal algorithm was develpoed by rembg.

The project is comprehensive, open-source and available as a Python package.
Installation:

pip install rembg

Implementation :

from rembg import remove

input_path = 'input.png'
output_path = 'output.png'

with open(input_path, 'rb') as i:
    with open(output_path, 'wb') as o:
        input = i.read()
        output = remove(input)
        o.write(output)

Installation

To get started, you'll need to clone this repository and set up a new virtual environment:

git clone https://github.com/lucasdevit0/Background-Removal
cd Background-Removal
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

About

Implementation of a simple web application for image background removal. Deployed with Streamlit - demo available!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages