Created
October 31, 2022 16:41
-
-
Save xeldrago/f74ac701405f3a65fa8aef9d47dba725 to your computer and use it in GitHub Desktop.
This is a Background remover for images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rembg import remove | |
from PIL import Image | |
input_path='YourImageName.jpg' | |
output_path='YourImageName.png' | |
Bg_of_image=Image.open(input_path) | |
output=remove(Bg_of_image) | |
output.save(output_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
umm u'll have to install them modules mentioned in it