Skip to content
AI Segmentation
QGIS
Guide

Detect Objects Using Deep Learning in QGIS

Published

Four views of the same 80 m square of a street in Sully-sur-Loire: at 0.2 m every parked car is sharp, at 0.5 m the cars are small blocks, at 1.5 m they are a few coloured pixels, and at 10 m the square is 64 flat grey cells.
One street in Sully-sur-Loire, 80 × 80 m, from the IGN orthophoto at 0.2 m, then averaged to 0.5, 1.5 and 10 m. A detector can only find what the pixels still hold. IGN BD ORTHO 2023, Etalab 2.0.

To detect objects using deep learning in QGIS, install a plugin, because QGIS has no built-in version of the ArcGIS Pro tool. Deepness runs a ready ONNX model from its model zoo, GeoAI by Qiusheng Wu runs pretrained detectors and trains your own, and a cloud detector finds an object you type inside a zone you draw. As in ArcGIS, the result is a vector layer.

To keep it concrete, I took one place and one object: the parked cars of Sully-sur-Loire, a small town on the Loire, on France's free IGN orthophoto. Before any plugin, the first question is the one in the figure above. At 20 cm a car is 22 × 9 pixels. At 1.5 m it is three.

The short answer

Your inputMethodWhat you get
Imagery close to a zoo model: planes, cars, ships, oil tanks, tree topsMethod 1: DeepnessDetections from an ONNX model, on your machine
Trees, birds or livestock, or your own labels to train onMethod 2: GeoAIBoxes or polygons from pretrained or trained models, on your machine
Any object you can name, and no graphics cardMethod 3: typed-object detection (ours, cloud)One polygon per object, with a confidence score

What the ArcGIS Pro tool does

Detect Objects Using Deep Learning, in the Image Analyst toolbox, "runs a trained deep learning model on an input raster to produce a feature class containing the objects it finds." The features can be bounding boxes, polygons around the objects, or points at their centres.

  • Input: a raster, mosaic dataset, image service, folder of images or feature class with images attached.
  • Model Definition: an Esri model definition file (.emd), a JSON string, or a local deep learning model package (.dlpk). The framework it needs, such as PyTorch, must be installed in ArcGIS Pro's Python environment.
  • Arguments: read from the model, among them Padding, Confidence Threshold and Tile Size.
  • Non Maximum Suppression: optional, drops duplicate detections and keeps the more confident one.
  • Licence: Image Analyst at every level.

In Esri's workflow this is the third step, after labelling samples and training a model. The two local QGIS plugins have the same controls under other names:

ArcGIS ProDeepnessGeoAITyped-object detection (ours)
Model Definition (.emd, .dlpk)An ONNX file, from the zoo or your ownA pretrained model, or one you trainNone: you type the object
Tile SizeSet by the model, filled in by Load default parametersPatch sizePrecision
Confidence ThresholdConfidenceScore filterConfidence, in Keep
Non Maximum SuppressionIoU thresholdIoU thresholdObjects crossing a tile seam merged into one
Processing extentVisible part, entire layer or a polygonThe selected raster layerThe zone you draw
Output feature classA vector layer, saved to a file by handGeoPackage, Shapefile or GeoJSONGeoPackage with Confidence, Area, Perimeter

Before you start: match the resolution

A pretrained detector works on imagery like the imagery it learned from. The Deepness authors say it plainly: their zoo models "are not universal tools and will perform well only on similar data as in the training datasets." The first number to check is not a model setting. It is the ground size of one pixel in your image.

Here is how many pixels a few objects cover at the resolutions you are likely to have. The sizes are typical examples, the pixel counts follow from them, and the last column is the resolution of the matching Deepness zoo model.

Object, example size0.2 m (IGN, France)0.5 m1.5 m10 m (Sentinel-2)Zoo model trained at
Car, 4.5 × 1.8 m22 × 9 px9 × 4 px3 × 1 pxUnder 1 px10 cm
Tree crown, 6 m30 px across12 px4 pxUnder 1 px10 cm
Boat, 10 m50 px long20 px7 px1 px30 cm
Airliner, 36 m wingspan180 px72 px24 px4 px70 cm
Oil tank, 50 m across250 px100 px33 px5 px150 cm

The figure at the top shows what those numbers look like on the Sully street. At 0.5 m the cars are still small blocks with a shape. At 1.5 m they are coloured specks you would not swear to. At 10 m the whole 80 m square is 8 by 8 pixels. No setting brings back what the pixels never held, so if your imagery is satellite at 1.5 m, look for oil tanks and aircraft, not cars. The satellite resolution comparison lists what each source delivers and what it costs.

The worked example: parked cars in Sully-sur-Loire

  • Imagery: the IGN orthophoto of the Loiret, 20 cm, flown on 28 May 2023, loaded as a WMS layer (https://data.geopf.fr/wms-r/wms, layer ORTHOIMAGERY.ORTHOPHOTOS). It is free under Etalab 2.0.
  • Area: the town centre, south of the château. Start with one street, like the 80 m square above, before you run a whole town.
  • Object: cars, the one object type all three methods cover.
  • Projected CRS: EPSG:2154 (Lambert-93), so areas come out in square metres.

What changes between the methods is where the model comes from and where it runs.

Method 1: Deepness and its model zoo

Deepness, from the PUT Vision team, runs ONNX models for segmentation, detection, regression and super resolution on any raster layer, an online basemap included. Its model zoo is a set of ready ONNX files, each with the input size and resolution it was trained on. On 22 October 2026 the detection models were:

ModelTrained onResolutionInput tileGround covered by one tile
Aerial Cars DetectionITCVD aerial images10 cm640 px64 m
Tree-Tops DetectionPublic aerial datasets10 cm640 px64 m
Ship DetectionPublic aerial datasets30 cm640 px192 m
Airbus Planes DetectionAirbus satellite images70 cm256 px179 m
Airbus Oil Storage DetectionAirbus satellite images150 cm512 px768 m
UAVVaste, litterDrone images0.5 cm640 px3.2 m
An aerial view of Sully-sur-Loire with four nested squares drawn to scale: a small blue 64 m square for the car and tree-top models, green and yellow squares of about 180 and 190 m for planes and ships, and a red 768 m square for oil storage covering most of the town.
What one input tile of each zoo model covers on the ground, drawn to scale over Sully-sur-Loire. The car model looks at 64 m at a time, the oil storage model at 768 m. IGN BD ORTHO 2023, Etalab 2.0.

For Sully, the Aerial Cars model is the match by object, but it was trained on 10 cm images and the IGN orthophoto is 20 cm. Each car carries a quarter of the pixels the model learned from. Run it on one street first, as in the steps below, and check every detection on that street by eye before you trust a count for the town.

  1. Install the plugin and a model

    Install Deepness from Plugins > Manage and Install Plugins. On the first start a dialog helps install the packages it needs, ONNX Runtime among them. Then download the zoo model closest to your object and your imagery, here Aerial Cars Detection.

  2. Choose the layer and the area

    Open the Deepness panel and select the orthophoto layer. For the processed area, pick From Polygon and draw one polygon over a single street, or use the Visible Part of the map.

  3. Load the model

    Set Model type to Detector, point Model file path at the .onnx file, and click Load default parameters so the resolution and tile size match the training values.

  4. Check the thresholds and run

    Set Confidence and the IoU threshold, the setting Esri calls Non Maximum Suppression, then click Run. Save the output layer to a file when you are happy with it.

Use it when: your object and resolution match a zoo model, or you already have a model you can export to ONNX. Imagery stays on your machine.

Skip it when: no zoo model fits your object or your resolution, and you have no way to train one.

Method 2: GeoAI by Qiusheng Wu

GeoAI brings the geoai Python library into QGIS as dockable panels, free and open source. Three panels detect objects:

  • Tree Segmentation (DeepForest): pretrained models for tree crowns, birds, livestock, nests and dead trees, with patch size, overlap, IoU threshold and score filter.
  • Moondream: a vision-language model whose Detect mode takes an object type such as "car" and returns bounding boxes.
  • Instance Segmentation (Mask R-CNN): create training data from your labels, train, run inference. The same three steps as Esri's Export Training Data, Train Deep Learning Model and Detect Objects.

For the Sully cars, Moondream is the panel to try, because it takes the word "car" with no model to download by hand.

  1. Install and set up

    Install GeoAI from the plugin manager, open any GeoAI panel and click Install Dependencies, once. It builds its own Python environment in ~/.qgis_geoai/ and detects an NVIDIA (CUDA) or Apple Silicon (MPS) GPU.

  2. Detect

    Click Moondream in the GeoAI toolbar, load the default model, select the orthophoto layer, choose Detect, type car and click Run.

  3. Keep the result

    Add the detections to the map and save the vector layer to reuse it. If the boxes miss too many cars, label a few streets yourself and train in the Instance Segmentation panel.

Use it when: you want free local tools that also train on your own labels, and you have an NVIDIA card or Apple Silicon.

Skip it when: you cannot install Python packages on your machine, or you need results on a large area from a laptop without a capable GPU.

Method 3: Draw a zone and type the object

The third route needs no model file and no GPU. We make AI Segmentation, so this section is about our own tool. It uses its own detection models, tuned for aerial and satellite imagery, running on our servers in Europe, on Windows, macOS and Linux.

  1. Draw a zone and name the object

    Install it from the plugin manager, sign in, pick the orthophoto layer and start Automatic mode. Draw the zone over the street and type car. The Library shows previews if you are unsure of the wording.

  2. Set the precision and detect

    Raise Precision for small objects such as cars, then click Detect objects.

  3. Filter and export

    In Keep, the Confidence slider plays the role of Esri's Confidence Threshold and Size drops anything too small or too large to be a car. Export polygons writes a GeoPackage with Label, Class, Confidence, Area (m²) and Perimeter (m).

Aerial imagery of a car park beside a rail yard, before and after detection, each car outlined as its own polygon in its own colour. (Cars detected)
Aerial imagery of a car park beside a rail yard, before and after detection, each car outlined as its own polygon in its own colour. (Imagery)
ImageryCars detected
Drag to compare
One automatic run on a car park beside a rail yard, on Google Satellite imagery. Each car comes back as its own outline, ready for Keep. The cars in the deep shadow on the roof deck come back as rougher shapes.

Filtering is most of the work, whatever the object. In our own published runs, an unfiltered building pass over central Paris returned 635 polygons, and a 50 m² floor with a 0.5 confidence floor kept 82 of them. Dropping 87% of the polygons cost 16% of the area, because almost everything removed was a skylight or a shed. For cars the logic is the same with a different size range: a car is about 8 m², so a range of roughly 5 to 15 m² removes most of what is not one.

Unlike a box detector, each object comes back as its outline, so areas are ready to use. Detection is free for 1.5 km² a month, then €39 a month for 50 km². Semi-Auto with the My computer option runs on your own machine at no cost, one object per click.

Use it when: you have no GPU, no model fits your object, or you want polygons rather than boxes.

Skip it when: a whole-zone run must not leave your machine, since Automatic sends the image tiles to our servers. Skip it too when you need a model trained on your own labels, which is GeoAI's job.

Coming from ArcGIS: what changes

  • No model packages. In QGIS you pick an ONNX file (Deepness), a model the plugin downloads (GeoAI), or a typed word (ours). I found no source that QGIS reads .dlpk files, so plan to retrain or export to ONNX if your models live in ArcGIS.
  • No Image Analyst licence. All three plugins install free from the plugin manager. Ours charges for cloud area past the free allowance.
  • The extent is a polygon or the view. Limit a run with Deepness's From Polygon option, or with the zone you draw in ours.
  • Resolution is on you. The Deepness zoo lists the resolution of every model. Check it against your raster's pixel size in Layer Properties > Information before the first run.

How I measured this

I downloaded the IGN orthophoto over WMS on 22 October 2026 for an 80 × 80 m window in Sully-sur-Loire and averaged it to 0.5, 1.5 and 10 m. That imitates a coarser sensor but is not a real satellite image, which also carries its own blur. The tile squares are the zoo's input size times its resolution, drawn to scale on the same orthophoto. Neither Deepness nor GeoAI was installed on the test machine, so this post shows no detection from them, and the car run in Method 3 is from our published guide on a different site.

What to remember

QGIS has no Detect Objects Using Deep Learning tool. Deepness runs ONNX models, GeoAI runs and trains models, and cloud detection takes a typed object.

Check the pixel size before the model. On IGN's free 20 cm orthophoto a car is 22 × 9 pixels, a quarter of what the 10 cm Deepness car model learned from. At 1.5 m it is three pixels.

Esri's Confidence Threshold and Non Maximum Suppression become Confidence and IoU threshold, and filtering by confidence and size is most of the work.

Questions people ask

Do I need a GPU to detect objects with deep learning in QGIS?

It depends on where the model runs. GeoAI recommends an NVIDIA card with CUDA or Apple Silicon, and Deepness's install instructions use the GPU build of ONNX Runtime. Cloud detection runs on the provider's servers, so any laptop works.

What resolution do I need to detect cars?

About 50 cm or finer. At 50 cm a car is 9 × 4 pixels, still a shape. At 1.5 m it is about 3 × 1 pixels and no longer reliable. The Deepness car model was trained on 10 cm aerial images, and France's free IGN orthophoto is 20 cm.

Which objects can be detected in QGIS?

Whatever a model has learned. The Deepness zoo covers planes, oil tanks, cars, tree tops, ships and litter. GeoAI's pretrained models cover tree crowns, birds, livestock, nests and dead trees, and it trains on any object you label. A typed-object detector takes anything you can name and see, such as buildings, solar panels or pools.

Can I train my own object detector in QGIS?

Yes, with GeoAI: its Instance Segmentation panel creates training tiles from your labels, trains a Mask R-CNN model and runs it inside QGIS. Deepness runs models trained elsewhere, and its documentation has a notebook that trains a YOLOv7 car detector and exports it to ONNX.

Semantic vs instance segmentation explains why some detectors return boxes and others outlines, detect building footprints in QGIS runs the full filtering on one city, and the QGIS AI hub sorts the plugins by task.

Do it in QGIS by asking for it

AI Agent carries out the task you describe, in your own QGIS project. Free, no card.

Try AI Agent for free

Keep reading

Building footprints of Sully-sur-Loire over an IGN aerial photo, coloured green, yellow or red by how much Orthogonalize changed their area, with the château at the top.
AI SegmentationQGISGuide

Regularize Building Footprints in QGIS: 4 Ways

Orthogonalize is the QGIS answer. On 532 buildings in Sully-sur-Loire it squared 81% of corners, up from 31%, and changed the area of 189 by over 5%.

Lilien AugerLilien Auger
·