ANPR-SEA YOLO26n-pose
four-corner license plate detection
2 min readupdated
A compact computer vision model for automatic number plate recognition (ANPR) that predicts the exact coordinates of a plate's four corners (top-left, top-right, bottom-right, and bottom-left) rather than just a bounding box. Built by songhieng on the YOLO26n-pose architecture with pretrained COCO weights, it was fine-tuned on the anpr-sea-license-plates dataset covering plates from Cambodia, Thailand, Vietnam, and international sets. Unlike standard detectors, keypoint prediction (locating specific landmark coordinates on an object) lets you rectify plate perspective before passing it to OCR (optical character recognition). Useful as a starting point for developers experimenting with surveillance and parking systems.
Key features
- 4-corner detection: outputs keypoints in a
[4, 3]shape in strict TL, TR, BR, BL order for accurate skew correction. - High accuracy on Southeast Asian plates: reaches an AP50 of 0.980 for Vietnam, 0.974 for Thailand, and 0.952 for Cambodia.
- Low corner error: median coordinate error is 2.3% of plate size, with 89.8% of plates falling within a 5% threshold.
- Research status: a proof-of-concept trained in 1.5–2 hours, not a production-ready solution.
What you can do
- Build an ANPR pipeline: use the predicted corners for perspective warping of license plates prior to character recognition.
- Fine-tune for your region: use this checkpoint as a base for fine-tuning on local plate datasets, keeping in mind that the current AP50 on international plates is 0.722.
Example
from ultralytics import YOLO
m = YOLO("best.pt") # kpt_shape [4,3], TL,TR,BR,BL
Read more
DetailsTest metrics: AP 0.646, AP50 0.920, AR@100 0.718, false positive rate on negative frames — 0.092.
Training: 11 epochs (time-capped at ~1.5–2 hours) on a subset of 10,432 images, including 2,224 plates with corner annotations.
Limitations and license: Ultralytics code is under AGPL-3.0, and part of the training data (including CCPD) is for research use only; latency benchmarks are unpublished due to host load during testing.










Comments