YOLOv7 cars detection

The following example shows how to use the YOLOv7 model for cars (and other vehicles) detection in aerial or satellite images.

Dataset

The example is based on the ITCVD cars detection dataset. It provides aerial images with 10 cm/px resolution. Annotation bounding boxes for the cars are provided.

Training tutorial

The entire training process has been gathered in a tutorial notebook in jupyter notebook:

./tutorials/detection/cars_yolov7/car_detection__prepare_and_train.ipynb

Example inference

Run QGIS, next add “Poznan 2022 aerial” map using QuickMapServices plugin.

Alternatively you can use any other aerial or satellite map with resolution of at least 10 cm/pixel

../_images/cars_near_poznan_university_of_technology_on_ortophoto__zoom_in.webp

Then run our plugin and set parameters like in the screenshot below. You can find the pre-trained onnx model at https://chmura.put.poznan.pl/s/vgOeUN4H4tGsrGm. Push the Run button to start processing.

../_images/cars_near_poznan_university_of_technology_on_ortophoto.webp

Another inference on random street in Poznan:

../_images/cars_on_ransom_street_in_poznan.webp

And output mask for an Grunwald district in Poznan:

../_images/cars_in_poznan_grunwald_district.webp