opengeos/segment-geospatial
A Python package for segmenting geospatial data with the Segment Anything Model (SAM)
What it solves
SamGeo 简化了在地理空间数据分析中使用 Segment Anything Model (SAM) 的过程。它消除了需要大量编码来分割遥感影像和卫星数据的需求,让先进的图像分割工具对研究人员和 GIS 专业人士变得易于使用。
How it works
该包集成了多种分割模型,包括 SAM、SAM 2、SAM 3、Fast SAM 和 HQ‑SAM。它允许用户使用各种提示类型——如文本提示(通过 Grounding DINO)、交互式标记(前景/背景)和边界框——来定义感兴趣区域,以在 GeoTIFF 文件中隔离特定对象。它还处理地理空间的细节,如从 TMS 服务器下载地图瓦片,并将结果保存为标准矢量格式,如 GeoJSON、Shapefile 和 GeoPackage。
Who it’s for
此工具面向地理空间分析师、遥感研究者和 GIS 专业人士,帮助他们在无需编写复杂深度学习代码的情况下,从卫星影像中提取对象。
Highlights
- Multi-Model Support: Compatible with SAM, SAM 2, SAM 3, Fast SAM, and HQ‑SAM.
- Flexible Prompting: Supports text-based segmentation, interactive point markers, and box prompts.
- Text-to-Mask: Ability to segment remote sensing imagery using text prompts.
- GIS Integration: Available as a QGIS plugin and compatible with ArcGIS Pro.
- Geospatial Output: Saves segmentation results directly into common vector formats.
- REST API: Includes a REST API for serving segmentation services over HTTP.