This project provides an API for removing the background of images using AI-based models. The backend is built with Flask, and it allows users to upload images, process them, and return the image with the background removed.
- POST
/remove-bg: Upload an image and get the background removed.
- Python 3.8+
- Flask
- ONNX Runtime (for running models)
git clone https://github.com/Udhay707/Backend-AI_Background_Remover.git
cd Backend-AI_Background_Removerpython3 -m venv venv
###3. Activate the virtual environment:
For Linux/macOS:source venv/bin/activate
For Windows:venv\Scripts\activate
pip install -r requirements.txt
python app.py The server will be running at http://127.0.0.1:5000/.
docker build -t backend-ai-bg-remover .docker run -d -p 5000:5000 --name backend-bg-remover-container backend-ai-bg-remover
docker pull udhay707/backend-ai-bg-remover
docker run -d -p 5000:5000 --name backend-bg-remove-container udhay707/backend-ai-bg-remover