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.
git clone https://github.com/filnow/bg-changer.git
cd bg-changer
pip install -r requirements.txt
python3 app.py
- add video support
- make frontend kinda good