https://github.com/rdjarbeng/remove_background
Script to remove background from an image. Uses rembg package.
https://github.com/rdjarbeng/remove_background
image-processing open-source python
Last synced: 11 months ago
JSON representation
Script to remove background from an image. Uses rembg package.
- Host: GitHub
- URL: https://github.com/rdjarbeng/remove_background
- Owner: RDjarbeng
- License: mit
- Created: 2024-03-29T02:43:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T19:09:51.000Z (almost 2 years ago)
- Last Synced: 2025-05-19T02:11:19.585Z (about 1 year ago)
- Topics: image-processing, open-source, python
- Language: Python
- Homepage: https://huggingface.co/spaces/rdjarbeng/free-background-remover
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Remove background image using python package
Script to remove background from an image. Uses rembg package.
If you don't want to mess around with code:
I made a web version of the background remover and deployed to [hugging face, check it out here](https://huggingface.co/spaces/rdjarbeng/free-background-remover)
- Also added option to choose different models that work better for different use cases; people, anime, clothing.✅
- Added options to also add post editing options so improve the mask.✅
- Added the option to download the processed image without the background in original quality. ✅

Using code:
Dependiencies are located in requirements.txt
## Quick way
Modify the code. Run remove_bg.py with input path to image with extension and preferred output path
eg: input_path = 'C:/User/Desktop/image.png'
## Safe way
Run remove_bg_safe.py with input path as above. This just adds some exception handling and is less likely to crash unexpectedly.