The EasyRemoveBG is a simple application that allows users to remove the background from photos using a right-click context menu option in Windows Explorer.
- Right-click integration in Windows Explorer for easy access.
- Background removal functionality using advanced algorithms.
- Supports various image formats (e.g., PNG, JPEG, WEBP).
-
Remove Background:
- Suitable for normal photos.
- Uses Rembg for background removal.
-
Remove Logo:
- Recommended for logos and graphics.
- Uses OpenCV for logo removal, which provides effective handling of shapes and contours.
- Windows operating system
- Python 3.12 or later installed
- Required Python packages (install using
pip install -r requirements.txt
)
-
Download or Clone the Repository:
- Download or clone the repository to your local machine.
-
Run
first.bat
Script:- Double-click on
first.bat
located in the root of the repository to initialize the setup process. This script will prepare the environment and install necessary dependencies.
- Double-click on
-
Import
second.reg
File:- After
first.bat
completes, you can importsecond.reg
into the Windows registry to add the right-click context menu options.
- After
By following these instructions, users should be able to easily set up and start using your EasyRemoveBG on their Windows systems.
- Navigate to a folder containing images.
- Right-click on an image file (e.g.,
example.jpg
). - Select "Remove Background" or "Remove Logo" from the context menu to process the image.
-
Read Input Image:
The script reads the input image and extracts its color channels (RGB). -
K-means Clustering:
The script applies K-means clustering to segment the image into two clusters: foreground and background. -
Create a Mask:
Based on the clustering result, it creates a binary mask to distinguish the foreground from the background. -
Apply Alpha Channel:
An alpha channel is generated from the mask and added to the original image. -
Save Output Image:
The image with the transparent background is saved in the same directory as the input image.
- We need a logo to represent the EasyRemoveBG in the right-click context menu.
- The logo should be visually appealing and clear even at smaller sizes.
- Preferably, provide the logo in vector format (SVG) for scalability.
- If possible, contributors are encouraged to explore integrating both "Remove Logo" and "Remove Background" options into a single right-click menu.
- Submenus can enhance user experience by organizing functionalities logically.
- Consider usability and design principles when proposing or implementing this feature.