Work 02 / 18
Blurring licence plates in property photos
An estate-agency platform blurs car number plates in exterior photos before publishing them. Its detector was missing about a third of all plates. I found the main cause in one missing argument, then trained a replacement.




Photos: Görlitz Obersteinweg 20a Wohnhaus 2025 by Steffen Mokosch, CC0; Vintage House in a City (Unsplash) by Jamie Whiffen jamiewhiffen, CC0; 1975 Leyland P76 (6122872403) by Riley from Christchurch, New Zealand, CC BY 2.0; 1977-79 Toyota Corolla in an appaling "roadw… by Charlie from United Kingdom, CC BY 2.0. What I changed.
- Plates missed, out of 114
- 39 → 4
- Deployed detector to my model, 82 test photos
- F1
- 0.735 → 0.978
- ±4 points at this sample size
- Unblurred plates per 1,000 photos
- 476 → 49
- At the rate measured on the test set
- Fully covered by the blur
- 69% → 98%
- After growing the blur by 8 px
The problem
The deployed detector missed 39 of the 114 plates in my test set. Plates in these photos are small: the median is 91 pixels wide in a 4,000-pixel image, and the smallest is 12.
The first fix was one argument
Before training anything I ran the existing detector at different input sizes. It had been deployed without an imgsz argument, so it ran at 640 pixels and shrank the median plate to about 19 pixels. The same weights at 1792 missed 8 plates instead of 39. That was the biggest single gain in the project, and it needed no training.
What I trained
I built the dataset over three annotation rounds (150, then 400, then 1,780 images), ending with 2,328 images and 3,267 plates, each labelled as a four-point quad with a fixed corner order. 584 of the images are verified negatives: house numbers, agency boards and permit stickers.
A segmentation model got to 7 missed plates. The model I delivered is a YOLO11x pose model that predicts the four corners of each plate. It misses 4 of 114, with precision 0.991 and recall 0.965.
82 test photos. Thresholds were chosen on the validation set and the test set was scored once. The bar in colour is the model I delivered.
Finding a plate is only half of the job, because the blur has to cover all of it. Growing the blur region by 8 pixels raised the share of plates that were fully covered from 69% to 98%.
What failed
Combining several models cost 3 to 9 points of F1. Cropping each vehicle first and looking for the plate in the crop cost 4 to 11. Running above 1792 pixels, tiling the image, and contrast equalisation all made results worse. An early segmentation run used a mask setting that left small plates with 13-pixel training targets; the lower setting, with 27-pixel targets, is the one that shipped.
Checking my own test set
With one property photographed many times, a test image can have a near-twin in training. I scanned for that with CLIP and found 22 of my 82 test images had a same-property match. Re-scoring on the 60 clean images raised every model’s score, including the baseline that was never trained on this data, so the overlap had not inflated my results. My first similarity threshold (0.90) was wrong; I validated 0.95 by eye.
The labels also moved. I revised the test labels five times, and the plate count went 114, 110, 119, 110, 114. Each revision moved F1 by up to 3 points, so the scoring script refuses to run against an old version.
Limits
114 plates is a small test set. The 95% interval is about ±4 points, so the gap between my model and the deployed baseline is real, and the gaps between my own candidates are within the noise.
As a zero-training baseline I also tried a vision-language model with SAM: on 10 images it found 7 of 11 plates at about 35 seconds per image. It is useful for pre-labelling and too slow and too inaccurate for production.
On public photos the model has one clear blind spot: close-ups where a plate fills a large part of the frame. It was trained on exterior property photos, where plates are small, and on this photo it finds nothing.

Photo: BMW 750iL (Tomorrow Never Dies) front-shadow… by Karen Roe from Bury St Edmunds, Suffolk, UK, CC BY 2.0. What I changed.
From the run log
lp.01The detector as deployedF1 0.735, 39 plates missedBaseline
Setup: YOLOv8m at 640 px (no imgsz argument), 82 test images, 114 plates
Precision 0.833, recall 0.658. It was deployed without an input-size argument, so it ran at 640 pixels and the median plate shrank to about 19 pixels.
lp.02The same detector at 1792 pxF1 0.955, 8 plates missedFinding
Setup: Same weights, input size 1792
Precision 0.981, recall 0.930. Changing one argument, with no training, recovered 31 of the 39 missed plates. This was the largest single gain in the project.
lp.05Four corners per plateF1 0.978, 4 plates missedShipped
Setup: YOLO11x-pose at 1792 px, each plate as four ordered corner points
Precision 0.991, recall 0.965. This is the delivered model. Thresholds were chosen on the validation set and the test set was scored once.
lp.06Growing the blur regionFull coverage 0.691 → 0.982Shipped
Setup: Dilate the blur region by 8 px
Detection F1 does not say whether the blur covers the whole plate, so I measured that separately: 69.1% of plates were fully covered. Growing the region by 8 pixels raised it to 98.2%.
lp.08Leakage scan with CLIP22 of 82 test images had a same-property matchFinding
Setup: CLIP similarity between every test and training image
Re-scoring on the 60 clean images raised every model’s score, including the baseline that was never trained on this data, so the overlap had not inflated my results. My first threshold, 0.90, was mis-calibrated. I validated 0.95 by eye.
Tools
YOLO11x-pose, YOLO11m-seg, SAM 2.1 (label refinement), CLIP (leakage scan), CVAT, ONNX Runtime.
The full write-up
There is a longer write-up of this project. It has client details in it, so email me if you’d like a redacted copy.