About Segment Geospatial
Segment Geospatial, known as SamGeo, is an open source Python package that applies Meta's Segment Anything Model (SAM) to geospatial data. It aims to let users segment satellite and aerial imagery with minimal code, rather than adapting a general purpose computer vision model to map data by hand.
The package can download map tiles from Tile Map Service servers and turn them into GeoTIFF files, then segment those files with SAM, its high quality variant, and the SamGeo 2 and SamGeo 3 model families. It supports segmentation with text prompts, interactive foreground and background markers, and markers loaded from existing vector datasets. Results can be saved as GeoPackage, Shapefile or GeoJSON, input prompts can be saved as GeoJSON, and segmentations can be shown on interactive maps. It also handles objects in time series imagery. A REST API serves segmentation over HTTP, and a QGIS plugin brings the same functions into desktop GIS.
It suits remote sensing analysts, GIS practitioners and researchers who need to extract buildings, water, vegetation or other features from imagery. The documentation includes examples, demos, tutorials and workshops. Installation is through PyPI, with optional extras so that users can install only the models they need.
The software is free under the MIT license, and no paid plans are published. The package was described in the Journal of Open Source Software.