Rembg is a tool to remove the backgrounds from images. It’s written in Python and published under an open source license. It’s a versatile tool. It can be run from the command-line, and process a whole folder. It’s also possible to use it as a web server, as a shared library, and run as a Docker image.
The tool relies on the U2Net model, a machine learning model that performs object cropping in a single shot. Taking an image of a person, cat, etc. as input, it can compute an alpha value to separate the background from the panoramic view.