import os def removebackground(inpath, outpath): os.system('backgroundremover -i ' + inpath +' -o ' + outpath) if __name__ == '__main__': inpath = "in/image3.jpg" outpath = "out/output.jpg" removebackground(inpath, outpath)