AI Segmentation
AI Segmentation is a QGIS plugin that turns imagery into vector polygons with its own detection models, tuned for aerial and satellite images. Click one object to get its outline, or name what you want, such as "buildings", "trees" or "solar panels", and get every match in a zone. It replaces tracing by hand.
Two modes
| Semi-Auto | Automatic | |
|---|---|---|
| You do | Click an object, get its outline | Draw a zone, name an object, get every match |
| Runs | My computer: on your computer, offline. Cloud AI: on TerraLab servers | On TerraLab servers, no graphics card needed |
| Counted in | My computer: nothing, free and unlimited. Cloud AI: cloud objects saved | km² of the zones you run |
| Best for | A few objects, or objects of an unusual shape | Every object of one kind over an area |
Before you start
- QGIS 3.22 or later, on Windows, macOS or Linux.
- An imagery layer: an orthophoto, a drone or satellite image (GeoTIFF, JPG, PNG) or an online basemap (WMS, XYZ tiles).
- The plugin installed and signed in: see Install and sign in. Semi-Auto on My computer also works without an account.
The image needs a position and a projected coordinate system, in metres. A layer in degrees (such as EPSG:4326) must be reprojected first, a scanned map with no position must go through the QGIS Georeferencer, and a rotated raster must be warped. The panel says which one applies. Drawn basemaps such as OpenStreetMap are not imagery and are refused.
Find every object in a zone (Automatic)
- Open the panel from the AI Segmentation button on the TerraLab toolbar, or Plugins, AI Segmentation, and choose Automatic.
- Pick the imagery layer.
- Draw the zone: click at least 3 points on the map, then double-click or click the first point to close it. The panel shows its size in km².
- Type the object in one or two words, for example
building,tree,carorsolar panel, or pick it from the Library. A word in another language or with a typo is understood. For an unusual object, draw an example box around one of them as well. - Click Detect objects. The button shows the area and the estimated time; tiles appear on the map as they are done.
- Review the result in three steps:
- Keep: the confidence slider (30% by default) and the minimum and maximum size in m² hide what you do not want.
- Correct: fix a polygon with the AI or by hand: move corners, add, split, merge or delete (right-click,
Del, or right-drag a box to delete everything inside). - Shapes: right angles for buildings, fill holes, round corners, simplify, expand or contract.
- Click Export to write one vector layer.
The Precision setting under Advanced settings finds smaller objects with a finer grid; it does not change the km² counted.
Outline objects one by one (Semi-Auto)
- In the panel, choose Semi-Auto, pick the imagery layer, then the engine: Cloud AI (no install) or My computer (installs once, see below).
- Click an object on the map. Left-click adds a point inside it, right-click marks a point to leave out. The outline updates after each click.
- Press
Sor Save polygon to keep it, then click the next object. - Press
Enteror Export polygon to a layer to write every saved polygon to one layer.
Ctrl+Z undoes the last point, Esc clears the current object.
The result
Export writes GeoPackage (with its style), GeoJSON, Shapefile or KML. Each polygon carries these fields:
| Field | Content |
|---|---|
det_id | Detection number |
class | The object you asked for, or manual for Semi-Auto |
confidence | Model confidence, 0 to 1 |
area_m2 | Area in m² |
perimeter_m | Perimeter in metres |
GeoJSON and KML are written in EPSG:4326, and Shapefile shortens field names to 10 characters. Every finished Automatic run is also kept in History, grouped by day: restore it to the map at no cost, export it again or run it again.
Semi-Auto on My computer
The first time you pick My computer, the plugin sets up its own Python environment, separate from the QGIS one, and downloads its model. Plan about 10 minutes and 5 GB of free disk space. No graphics card is needed; Apple Silicon Macs use their GPU.
- Files live in
~/.qgis_ai_segmentation. Set theAI_SEGMENTATION_CACHE_DIRenvironment variable to put them on another disk. - Remove AI files in the plugin settings deletes them.
- Not available with QGIS installed through Flatpak or Snap on Linux, or on Intel Macs with QGIS 4: use Cloud AI there.
Free plan and Pro
| Plan | Automatic | Semi-Auto, Cloud AI | Semi-Auto, My computer |
|---|---|---|---|
| Free | 1.5 km² a month, zones up to 3 km² | 20 cloud objects a month | Unlimited |
| Pro | 50 km² a month | 500 cloud objects a month | Unlimited |
Only saved objects count in Semi-Auto, never clicks. The allowance renews on the same day each month, and the panel shows what is left. Figures are those of new subscriptions: an older plan keeps the allowance it was sold with, and the panel shows your own. Prices are on the pricing page, and larger areas for one project are sold as AI Segmentation Business. See Account, plans and billing.
Limits
- A free zone is cut to the km² you have left, and to 3 km² at most.
- Large zones are split into tiles; a run cut by a lost connection resumes where it stopped.
- Build overviews (pyramids) on large local rasters so the plugin reads them fast.
Privacy
Semi-Auto on My computer sends nothing you segment. Cloud AI sends a small square of imagery around each click to our servers in the EU. Automatic sends the tiles of the zone, the object you typed and your example boxes to our servers in the EU, and keeps the results for your history. On the free plan TerraLab may use them to measure detection quality; on Pro it never does. Details: privacy policy.
Troubleshooting
- "You used your Automatic allowance for this month": Semi-Auto on your computer keeps working, free; or wait for the reset date, or move to Pro.
- No matches in this zone: try a more common word (
buildingrather thanhouse), draw an example box, or raise the precision. - The layer is in degrees, has no position or is rotated: reproject, georeference or warp it first, as the panel says.
- "Missing Visual C++ Redistributable" or "A required DLL failed to initialize" on Windows: install the Microsoft Visual C++ Redistributable, restart, then click Retry. See Plugin troubleshooting.
- Report a problem in the panel copies the logs for support.
Learn more
Was this page helpful?
Updated Nov 23, 2026