License plate reading for truck gates

A truck pulls up, the camera reads its plate many times, and the gate opens only on a confident read. Everything else goes to a quick review.

Live processing: a plate boxed and read as 34AS093, with its track number and confidence

Project snapshot

Client
Gate read project markTruck parking and gate operator
Industry
Logistics: truck parking and gate access
Region
USA
Team
2 people1 AI/ML engineer, 1 computer vision developer
Budget
$30k–50k
Delivered
  • Computer-vision pipeline: detection, tracking, text reading, voting, format checks, gate decision
  • Database
  • Dashboard with a review page
  • Retraining outbox
  • Live camera and multi-camera support
  • Cloud GPU batch runs
  • Demo deck and runbooks
AI
Working first versionOn recorded clips
Key stack
  • Python
  • YOLO
  • EasyOCR
  • OpenCV
  • Streamlit
  • Modal

This system turns gate camera video into one record per tracked plate. Each record holds the plate, how confident the read is, and a decision to open the gate or flag it for review. It reads each plate many times and votes, and opens the gate only when the read passes its checks. Techuz built the pipeline and review dashboard, tested on recorded gate clips.

The client: truck parking across the US

The client runs truck parking and gate facilities across the US, with cameras at each gate and a small computer on site.

Drivers just pull up. Gate staff would use a browser dashboard to check only the reads the system isn't sure about.

The challenge: identifying trucks without a person at the gate

Identifying a truck at the gate was manual or semi-manual: slow, error-prone and staffed.

The client wanted camera feeds turned into truck data automatically. A truck pulls up, the system reads it, and the gate decides in seconds.

Here's what the system had to get right:

  • Reading plates through glare, motion blur and partial views
  • Never opening the gate on a read it isn't sure of
  • Running on a CPU-only box at the gate, and on cloud GPUs
  • Collecting hard cases to learn from
  • Room to add USDOT and MC numbers (the carrier IDs on US trucks) and trailer numbers later

Key decisions and why we made them

Three choices shaped this system. We read each plate many times and vote, we let the system say when it isn't sure, and we kept one codebase for every machine.

From camera to gate

  1. Camera frame
  2. Plate detection: YOLO
  3. Tracking gives each plate an ID: SORT
  4. Text read every 3rd frame: EasyOCR
  5. Vote across reads
  6. Format check and confidence ≥ 0.55
  7. Open the gate, or flag for review
  8. Hard cases saved for retraining
  1. Read each plate many times, then vote

    The easy option was to trust one good frame. Instead, a tracker gives every plate a stable ID, and the text is read every third frame.

    The winning text is the one with the most total confidence, scaled down when the reads disagree.

  2. The system says when it isn't sure

    A read opens the gate only if it passes a format check and scores at least 0.55 for confidence. That's how sure the reader is, on a 0 to 1 scale. Everything else is flagged for review, where an operator sees the plate image and confirms or dismisses it in one click.

  3. One codebase for every machine

    The same code picks its device when it runs: a CPU, or a named GPU. It reads video the same way from a file or a live camera stream.

Two smaller calls

  • Hard cases saved for retraining. Unsure and invalid reads are collected automatically, with the plate image and details, ready to relabel.

  • Rules ready for more than plates. Format checks cover a general plate rule and four US state patterns, and rules for USDOT and MC numbers are already written.

What we built

Gate staff work in a browser dashboard with a live view and a review page. Every read lands in a database, and hard cases go to an outbox for retraining.

A busy street clip being read: each plate boxed with its track number, read text and confidence, yellow while still reading

Watch a clip being read live

Plate boxes, read text, and the value locking in once enough frames agree

The review page: plates read, granted, flagged, valid format and average confidence, then each flagged read with its plate image and Confirm or Dismiss

Check any read in one click

Review page with the plate image, to confirm or dismiss

Also delivered

Get one record per tracked platePlate value, format check, confidence, vote count, and an open or flag decision
Build up training data without extra workRetraining outbox of unsure and invalid reads
Run it on different sourcesBuilt for recorded clips and live camera streams; tested on clips and two streams at once
Process a clip on a cloud GPUBatch runs on Modal, reviewed in the same dashboard

How the project ran

We built the pipeline, the dashboard, a demo deck and the setup and demo guides.

2people

1
AI/ML engineer
1
Computer vision developer

The results

The system reads plates end to end, from camera video to a gate decision. With this setup, gate staff would only check the reads the system isn't sure about. Every unsure read is saved, so the model can be retrained on the client's own conditions. The client has since shared footage from its own gates, which is what the next phase needs to add USDOT, MC and trailer numbers.

Tech stack

  1. Detection

    • Ultralytics YOLOpretrained YOLOv11-nano plate model
  2. Tracking

    Stable IDs are what make voting across frames possible

    • SORTwith a Kalman filter
    • filterpy
    • SciPy
  3. Text reading

    Easy to run on Windows and on a CPU

    • EasyOCR
    • PyTorch
  4. Video

    Reads files and live camera streams the same way

    • OpenCV
    • mediamtx
    • ffmpeg
  5. Data and dashboard

    SQLite needs no setup, and the same models can move to PostgreSQL later

    • SQLAlchemy
    • SQLite
    • Streamlit
    • pandas
  6. Cloud GPU

    Billed per second

    • ModalT4

Questions about this project

  • License plate recognition accuracy at a gate depends on the footage, so test it on your own cameras. Here, anything below the confidence bar goes to a person instead of opening the gate.

  • One frame is often wrong because of glare, blur or a partial view. Here, each plate is read every third frame and the reads are combined in a vote.

  • Plate recognition can run without a GPU for testing. Here, a CPU handled about 1.5 to 3 frames a second, so a live gate needs a GPU or an edge device.

Get a Ballpark Estimate for Your Project

Tell us what you're building. We reply within 24 hours and send a ballpark estimate within 48.

Tell us about your project

A few lines are enough. We reply within 24 hours.

By sending this form I confirm that I have read and accept the Privacy Policy