The picture cannot be opened after setting the color
blueskywwc opened this issue · comments
blueskywwc commented
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!
Weathercold commented
Which version of remove-bg are you using?
Also, please censor your API key.
brilam commented
Aside from censoring your API key, I would recommend refreshing your API key
hotsmile commented
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