Created
April 22, 2023 22:41
-
-
Save atodev/7a037f74cf353b3c6a1d4489528ef71b to your computer and use it in GitHub Desktop.
[image bkrnd remove]
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 = '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