brilam / remove-bg

A Python API wrapper for removing background using remove.bg's API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The picture cannot be opened after setting the color

blueskywwc opened this issue · comments

from removebg import RemoveBg
rmbg = RemoveBg("CYoE87mDaDA9jcb3nKSHG5c7", "error.log") # 引号内是你获取的API
rmbg.remove_background_from_img_file("bus.jpg",bg_color="green") #图片地址

The code can be executed, but the generated picture cannot be opened, how to solve it, thank you!

Which version of remove-bg are you using?
Also, please censor your API key.

Aside from censoring your API key, I would recommend refreshing your API key

Which version of remove-bg are you using? Also, please censor your API key.

i think this project is deprecated, because removebg now use the new API