samgeo: A Python package for segmenting geospatial data with the Segment Anything Model (SAM)
Year: 2023
Type: software-paper
Abstract: Segment-Geospatial (samgeo) is an open-source Python package designed to simplify the process of segmenting geospatial data with the Segment Anything Model (Kirillov et al., 2023). The package leverages popular Python libraries, such as leafmap (Wu, 2021), ipywidgets (Grout et al., 2021), rasterio (Gillies et al., 2013), geopandas (Jordahl et al., 2021), and segmentanything-py (Wu, 2023), to provide a straightforward interface for users to segment remote sensing imagery and export the results in various formats, including vector and raster data. The segmentation can be run automatically, interactively in a graphical user interface (GUI), or by text prompts built upon Grounding DINO (Liu et al., 2023). However, it's worth noting that the text prompt approach has its limitations, which may require parameter fine-tuning. Additionally, the package provides functionality for downloading remote sensing imagery and visualizing segmentation results interactively in a Jupyter environment. Segment-Geospatial aims to fill the gap in the Python ecosystem by providing a user-friendly, efficient, and flexible geospatial segmentation tool without the need for training deep learning models.
DOI: 10.21105/joss.05663
Authors: Qiusheng Wu, Lucas Prado Osco
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W4386632015
