#samgeo

2 posts

Three panels of the same corner of Utrecht: boxes from a text prompt over blocks of flats, the SAM 2.1 masks inside the kept boxes, and the resulting polygons following the national register's building outlines

Article Remote Sensing

Segment Anything for GIS: SAM, SAM 2 and SAM 3 on aerial and satellite imagery

What Meta's Segment Anything models are, how to prompt them with points, boxes and text, the tools for using them in Python, ArcGIS Pro and QGIS, how to turn masks into GIS features, and how to measure whether the results are good enough, with measured results from two tutorials.

Intermediate 13 min read

An aerial image of a housing estate covered in 306 coloured Segment Anything masks beside the same image without masks

Tutorial Python Part 1 of 11

Segment Anything on satellite and aerial imagery in Python: a samgeo tutorial

Run Meta's Segment Anything Model on high-resolution aerial imagery with segment-geospatial (samgeo), on a CPU. Generate masks automatically, vectorise them to a GeoPackage, filter them by area, shape and NDVI to find buildings, and prompt SAM with points and boxes, checked against OpenStreetMap.

Intermediate 14 min read