Welcome to the Image Background Removal and Transformation Tool! This project is a Python-based application that allows you to easily remove image backgrounds and apply transformations like converting images to 8-bit or Black and White. The tool is built using the rembg
library, Pillow
, and Jupyter widgets for a user-friendly interactive experience.
-
Background Removal:
- Removes the background from uploaded images seamlessly.
-
Image Transformations:
- 8-Bit Conversion: Transforms the image into a retro 8-bit style.
- Black and White: Converts the image to grayscale.
-
Interactive UI:
- Powered by Jupyter widgets for easy image upload, processing, and display.
-
Save Processed Images:
- Save the transformed image locally as
processed_image.png
.
- Save the transformed image locally as
ImageProcessor/
├── main.py # Main script for the tool
├── requirements.txt # Dependencies for the project
├── README.md # Documentation for the project
-
Clone the Repository:
git clone https://github.com/thekartikeyamishra/ImageProcessor.git cd ImageProcessor
-
Set Up Virtual Environment (Optional):
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application: Open a Jupyter Notebook and run the
main.py
script.
The project uses the following Python libraries:
rembg
: For background removal.Pillow
: For image processing and transformations.ipywidgets
: For building an interactive UI in Jupyter.IPython
: To display widgets and outputs.
Install them using:
pip install rembg pillow ipywidgets IPython
-
Open the Tool: Launch the Jupyter Notebook and execute the script.
-
Upload an Image: Use the File Upload widget to select an image.
-
Choose a Transformation:
- Original (Background removed): Removes the image background.
- 8-Bit: Converts the image to an 8-bit style.
- Black and White: Converts the image to grayscale.
-
Process the Image: Click the Process Image button to apply the selected transformation.
-
View and Save:
- The tool displays the original and processed images.
- The processed image is saved locally as
processed_image.png
.
-
Batch Processing:
- Support for uploading and processing multiple images simultaneously.
-
Additional Transformations:
- Add filters like sepia, blur, or edge detection.
-
Web App:
- Convert the tool into a web application for broader accessibility.
-
Mobile Compatibility:
- Develop a mobile version for on-the-go image processing.
Contributions are welcome! If you have ideas for new features or enhancements:
- Fork the repository.
- Make your changes.
- Submit a pull request.
If you find this project useful, consider giving it a ⭐ on GitHub: Image Background Removal and Transformation Tool.
Enjoy transforming your images! 🚀