This Streamlit application allows users to upload an image and remove its background. The app uses the rembg
library to process the image and provides options to view the original and processed images side by side. Users can also download the processed image with the background removed.
- Upload and process images to remove their background.
- Display original and processed images side by side.
- Download the processed image directly from the app.
- Size validation to ensure the uploaded image does not exceed 5MB.
To install and run the project on your local machine, follow these steps:
-
Clone this repository or download the zip file.
git clone https://github.com/yourusername/image-background-remover.git
- After running the app, go to the sidebar and use the "Upload the image" button to upload an image file (JPG, JPEG, or PNG).
- If the image file size exceeds 5MB, you will receive a warning. Ensure the image size is within the limit.
- The app will display the original and processed images side by side.
- Click the "Download Image" button in the sidebar to download the processed image with the background removed.
- Streamlit: For creating the web application interface.
- rembg: For removing the background from images.
- PIL (Pillow): For image processing.
- io: For handling image byte streams.