filnow / bg-changer

simple background changer on photo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This project is mostly for learning dash/flask and mediapipe/opencv/paddleseg.

Segmentation and matting is done with PaddleSegMatting more specifically I used a PP-MattingV2 that is SOTA for image matting. The model is also lite and runs in about 0.5 seconds per photo with preprocessing on CPU.

The results are as good as most online background removers or changers.

Preview

Alt text

Run

git clone https://github.com/filnow/bg-changer.git
cd bg-changer
pip install -r requirements.txt
python3 app.py

TODO

  • add video support
  • make frontend kinda good

About

simple background changer on photo

License:MIT License


Languages

Language:Python 100.0%Language:CSS 0.0%