This Flask application provides a user-friendly interface for removing backgrounds from images using the powerful U2Net deep learning model. It allows users to upload an image and receive the processed version with the background seamlessly removed, all within a simple API call.
- Python 3.9 above
- Flask Framework
- U2net Model (https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx)
pip install requirements.txt
Then run the app:
python app.py
- endpoint: http://hostname:51000
- method: POST
- image: file