https://github.com/filnow/bg-changer
simple background changer on image
https://github.com/filnow/bg-changer
dash matting opencv paddleseg python3 segmentation
Last synced: 10 months ago
JSON representation
simple background changer on image
- Host: GitHub
- URL: https://github.com/filnow/bg-changer
- Owner: filnow
- License: mit
- Created: 2023-02-23T20:34:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T16:29:25.000Z (over 2 years ago)
- Last Synced: 2025-05-08T22:59:19.421Z (about 1 year ago)
- Topics: dash, matting, opencv, paddleseg, python3, segmentation
- Language: Python
- Homepage:
- Size: 38.3 MB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This project is mostly for learning dash/flask and mediapipe/opencv/paddleseg.
Segmentation and matting is done with [PaddleSegMatting](https://github.com/PaddlePaddle/PaddleSeg/tree/release/2.7/Matting) 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

# Run
```bash
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