Skip to content

Instantly share code, notes, and snippets.

@atodev
Created April 22, 2023 22:41
Show Gist options
  • Save atodev/7a037f74cf353b3c6a1d4489528ef71b to your computer and use it in GitHub Desktop.
Save atodev/7a037f74cf353b3c6a1d4489528ef71b to your computer and use it in GitHub Desktop.
[image bkrnd remove]
from rembg import remove
from PIL import Image
input_path = 'cl.jpg'
output_path = 'output.png'
input = Image.open(input_path)
output = remove(input)
output.save (output_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment