This repository contains a Python application built with Streamlit that allows users to remove the background from uploaded images. It utilizes the power of computer vision and a background removal library called rembg.
Check out the live demo of the application hosted on Streamlit: Background Remover
- Upload an image (JPEG, JPG, or PNG) to remove the background
- Automatic background removal using the rembg library
- Display the original image and the background-removed image side by side
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/deepankarvarma/background-remover.git
- Navigate to the project directory:
cd background-remover
- Install the dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run app.py
- Access the application in your web browser at http://localhost:8501
- Open the application in your web browser.
- Click on the "Upload an image" button.
- Select an image file (JPEG, JPG, or PNG) from your local machine.
- The application will display the original image and the background-removed image side by side.
- Marvel at the magic of background removal!
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
This application utilizes the following libraries:
- Streamlit: streamlit/streamlit
- OpenCV: opencv/opencv
- rembg: danielgatis/rembg
A special thanks to the developers and contributors of these fantastic open-source projects.
This project is developed and maintained by Deepankar Varma. You can find more of my work on GitHub.
Feel free to reach out with any questions or feedback!
Enjoy removing backgrounds with ease!