A million vehicles from the air
On the Surveying and Mapping Authority's latest orthophotos a pixel is 16 centimetres, so every car is plainly visible. We trained a model to find vehicles and ran it over the whole of Slovenia. It found 1,086,156. This is how it was made, and where the data is.
The images
The source is the orthophoto from the Cyclic Laser Scanning of Slovenia (CLSS), flown by the Surveying and Mapping Authority (GURS) between 2023 and 2025. The country is cut into 1 × 1 km sheets of 6,250 × 6,250 pixels, 16 cm each.
Each sheet comes as two products: colour (red, green, blue) and infrared (near infrared, red, green). We found that the red and green bands are identical to the pixel in both, so they come from one camera and one orthorectification, and the two combine into a single four-channel image: red, green, blue and near infrared. That is what the model sees.
A flight block was flown in one day or over a few days, and every vehicle carries its sheet's date. About a third of the sheets were flown in winter or early spring, with the trees bare.
Training labels: a detector proposes, Haiku checks
A model learns from examples with every vehicle marked. By hand that is weeks of work, so the labels were made in two steps.
- The sample. 1,959 chips of 640 × 640 pixels (102 × 102 m) from all 14 flight blocks, mostly around random addresses and 15% at random points. They were split into training, validation and test sets by sheet, never by chip, so no car appears in two sets.
- Proposals. A public YOLO11x-OBB model trained on the DOTA aerial dataset, which already knows "small" and "large vehicles", proposed candidates. We set it very sensitive (confidence 0.05) so it misses almost nothing. It proposed 16,475 vehicles.
- Checking. Candidates above 0.6 confidence were accepted unasked; the other 6,936 went to the language model Claude Haiku. It saw contact sheets of 24 numbered crops (12.8 × 12.8 m, the box drawn in) and sorted each into car, large vehicle, not a vehicle or unsure. 289 sheets cost nine cents.
- The audit. Haiku also checked a random 5% of the auto-accepted ones: 99% were vehicles. It agreed with 60% of the detector's least confident proposals and with 84% at confidence 0.4–0.6.
The result was 14,138 labelled cars and 818 large vehicles (lorries, buses, vans with trailers).
The model
Our model is YOLO11l-OBB. It draws each vehicle as a box turned the way the vehicle stands (OBB: oriented bounding box). Its first layer was widened from three channels to four: the infrared weights start at zero and the model learns how much to use them. Training took 80 epochs of about 20 seconds each on one GPU.
On the test set car precision was 0.956 and recall 0.831 (large vehicles 0.67 and 0.80). Do not read these as the truth: they are measured against labels made by the detector and Haiku, not by a person. The model also finds cars in shade that the labels lack (one test chip: 48 detections against 39 labels), so precision is probably higher and true recall is unknown.
All of Slovenia in seven hours
The whole country is about 2.6 million chips. On one GPU, sharing it with the model for pools and solar panels, that is about 18 hours. So we scanned only within 50 m of a cadastral building: 27% of the country, 674,144 chips on 16,734 sheets.
- Cells. Each sheet is cut into 11 × 11 cells of 1000/11 m (about 91 m), so no cell crosses a sheet edge. The chip around a cell is 640 pixels and shifts inward at an edge. A vehicle belongs to the cell holding its centre, and 3,728 duplicates along sheet edges were removed.
- Time. 6.7 hours for every sheet.
The result: 1,086,156 vehicles, 969,268 cars (median length 4.61 m) and 116,888 large vehicles.
What this data does not tell you
- It is one photograph. Each sheet was flown by day, in one day or a few, so the data shows where vehicles stood then. It does not say how many cars residents own: anyone who drives to work was parked at work.
- Not everything was scanned. Roads and car parks more than 50 m from a building were not. Cars in garages, under carports and under trees cannot be seen.
- The direction is an axis. A box says which way a vehicle lies, not which end is the front.
The map and the download
On the map, switch on the layer "Vehicles on the orthophoto". From afar it shows vehicles per hectare of scanned area: by 1 × 1 km sheet, then by 91 m cell as you zoom in. Areas that were not scanned are left uncoloured. Zoomed in far enough, each vehicle is a box turned the way it stands.
Download: vozila_si.zip (115 MB, GeoPackage, D96/TM). For each vehicle it holds the box, the kind of vehicle, the model's confidence, the dimensions, the axis direction, the sheet and the flight date. Licence CC BY 4.0; credit "bloki.si, from GURS orthophotos".
The same method trained models for swimming pools and solar panels too. They are for another post.