from rembg import remove from PIL import Image input_path="tuurenwu.png" out="mca.png" input=Image.open(input_path) outa=remove(input) outa.save(out)