A Python tool to automatically remove image backgrounds using Photoroom with anonymous guest authentication.
pip install curl_cffi PillowPlace an image (e.g. test.jpg) in the project root and run:
python example.pyfrom src.remove_bg import BackgroundRemover
remover = BackgroundRemover()
remover.remove_background(
input_image="test.jpg",
output_image="result_no_bg.png"
)- Author: Dauit Suragan (@davidsuragan)
- Used in: Ziat Express