Problem
Avito asks car sellers to enter a VIN and a license plate number when they post an ad. Both are long strings that are easy to mistype. 8% of all ad rejections came from errors in these fields. Some users abandoned the form, and others wrote to support.
The team wanted a model that fills both fields from a photo of the vehicle registration certificate (STS). It had to be accurate, transferable to other document types, scalable to production traffic and robust to photo variability.
Example from the article: old Japanese cars have "Otsutstvuet" ("Absent") in the VIN field, so the model must read the body number instead.
Solution in brief
Instead of one end-to-end OCR model, the team chained three narrow stages: classifiers that reject bad photos, a detector that cuts out the number regions, and a text recognizer with validation rules. Each stage prepares input for the next. The same decomposition was applied to labeling.
Questions this case answers
- How to extract identifier strings from user-uploaded document photos with higher precision than a single end-to-end OCR model gives
- How to build a labeling process with quality control for region-level annotation of document photos
- How to fill VIN and license plate fields automatically from a photo of a registration certificate
- How to reach 95%+ precision on text extraction from documents when end-to-end OCR libraries fall short
Tools and methods
- Checker classifiers — reject wrong document type, partial or distant shots with a hint to the user.
- RetinaNet + warpPerspective — find document corners and remove perspective.
- U-Net — segment pixels of plate, VIN and body-number regions.
- CRNN with CTC — read text from the cropped regions.
- Golden set — control assessor quality during labeling.
Google or a one-time email code. No password.