License Plate Recognition for Factory Trucks

Logging when trucks enter and leave a factory from its CCTV feed


This system reads the license plates of trucks entering and leaving a factory from its CCTV footage. It logged each truck’s arrival, length of stay and departure automatically, and the logs were used for billing the factory’s rented trucks, which helped resolve billing issues. It was deployed at one ACI Salt production facility.

How it works

Finding the plate. A YOLOv5 model locates license plates in the camera frames.

Reading the plate. Bangladeshi plates are written in Bangla, with the city and vehicle class on the top line and the registration number below. Instead of a separate OCR model, a second YOLOv5 model treats each word (such as the city name) and each digit as its own object to detect, and the plate is read from the detections in order. We collected and annotated the training data for both models.

Logging. Each recognized plate is logged with the time it entered and left the factory. The system ran as FastAPI services in Docker, with the logs stored in Microsoft SQL Server.

Demo: The first model finds the plates on a truck; the inset shows the second model detecting the words and digits on one of them.