Remove image background using python rembg module

 #remove image background using python rembg module

from rembg import remove

from PIL import Image

input_path='lists.png'  #old image path

output_path='lists-1.png' #new image path

inp=Image.open(input_path)

output=remove(inp)

output.save(output_path)


Note:first install rembg module using cmd

pip install rembg

rembg install only 3.8 later versions


No comments:

Post a Comment

Latest Post

How to Generate Barcode and QR code For Our Products

 మీ products కి barcode / QR code generate చేయాలంటే OPTION 1: ONLINE (No Coding – Quick) Best for small shops / beginners 👉Free websites: T...