Remove photo background by Python

GeoSense ✅
Nov 28, 2022

Here is a simple way to remove the background of an image.

Requirements

python: >3.7, <3.11

Installation

CPU support:

pip install rembg

GPU support:

pip install rembg[gpu]

Main code here:

Source photo by Author

--

--

GeoSense ✅

🌏 Remote sensing | 🛰️ Geographic Information Systems (GIS) | ℹ️ https://www.tnmthai.com/medium