Artigo Acesso aberto Produção Nacional

samgeo: A Python package for segmenting geospatial data with the Segment Anything Model (SAM)

2023; Open Journals; Volume: 8; Issue: 89 Linguagem: Inglês

10.21105/joss.05663

ISSN

2475-9066

Autores

Qiusheng Wu, Lucas Prado Osco,

Tópico(s)

Big Data Technologies and Applications

Resumo

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.

Referência(s)