Skip to content

Instantly share code, notes, and snippets.

@xeldrago
Created October 31, 2022 16:41
Show Gist options
  • Save xeldrago/f74ac701405f3a65fa8aef9d47dba725 to your computer and use it in GitHub Desktop.
Save xeldrago/f74ac701405f3a65fa8aef9d47dba725 to your computer and use it in GitHub Desktop.
This is a Background remover for images
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)
@xeldrago
Copy link
Author

umm u'll have to install them modules mentioned in it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment