Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Segment Anything in QGIS

Introduction

Learning Objectives

Sample Data

Loading a SAM Model

Text-Prompted Segmentation

Interactive Segmentation

Foreground and Background Points

Bounding Box Prompts

Batch Processing

Exporting Results

Raster Output

Vector Output

Polygon Regularization

Simplification and Area Filtering

Key Takeaways

Exercises

Exercise 1: Comparing Inference Backends

Exercise 2: Interactive Refinement of Text-Prompted Results

Exercise 3: Batch Processing with Building Centroids

Exercise 4: Tuning Output Parameters