Thai License Plate Detector (D-FINE-S)
Thai vehicle license plate detector
2 min readupdated
This model is designed to detect and blur vehicle license plates in videos, with a special focus on Thai registration plates. Built on the D-FINE-S architecture (ustc-community/dfine-small-coco) through direct fine-tuning on annotated data without distillation, the author currently recommends it for research purposes as it performs worse on small plates in some test videos compared to the previous version. This new release is useful for developers building automated privacy-masking systems for video recordings.
Key features
- Specialization in Thai vehicle license plates alongside general datasets.
- Trained on verified open sources, including CCPD and Roboflow.
- Two-stage training process: initially on general plates, followed by the addition of Thai plates.
- Full compatibility with the standard transformers library.
What you can do
- Integrate the model into video processing pipelines to detect and blur license plates.
- Conduct your own license plate recognition tests for research projects.
- Analyze datasets and training configurations from the repository to build similar detectors.
Example
from transformers import AutoImageProcessor, AutoModelForObjectDetection
repo = "Porameht/thai-license-plate-dfine-s"
proc = AutoImageProcessor.from_pretrained(repo, subfolder="stage_b/best")
model = AutoModelForObjectDetection.from_pretrained(repo, subfolder="stage_b/best")Read more
DetailsBenchmarks: on the CCPD hard splits dataset, the model achieves an AP50 of 98.1%.
Requirements: recommended to run on 1080p frames with additional 640 px slices.
Limitations: not yet recommended for production video editing as it handles small and distant plates less effectively.










Comments