#Grounding DINO

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

Two districts of Utrecht in summer aerial photography, with buildings shaded orange, tree crowns green, water blue and cars yellow, each found from a one-word text prompt

Tutorial Python

Text-prompted Segment Anything on aerial imagery: Grounding DINO and SAM 2.1 in Python

Segment buildings, trees, water and cars from a text prompt with Grounding DINO and SAM 2.1 in Python on a CPU, the open equivalent of ArcGIS Pro's Text SAM. Choose the prompt wording, tile size and threshold on one Utrecht district, then measure accuracy on another against the Dutch BGT register.

Advanced 17 min read