ankandrew/fast-plate-ocr

Lightweight & fast OCR models for license plate text recognition.

What it solves

Reading the text on a license plate from a cropped image. It is designed to be used after a separate object detector has already located and cropped the plate, so it focuses purely on turning that crop into readable characters (and optionally the plate's region/country). The project emphasises being lightweight and fast, so it can run cheaply and quickly even on modest hardware.

How it works

It provides OCR models that take a cropped license plate image and output the recognised text. The models are built with Keras 3, which lets you train them using TensorFlow, JAX, or PyTorch backends. For inference, it uses ONNX Runtime, which is optimised for speed, and you can install different ONNX backends depending on your hardware (CPU, NVIDIA GPU, Intel, Windows DirectML, or Qualcomm). Pre-trained models are available from a model hub, and you can also train from scratch or fine-tune a pre-trained model on your own dataset. The project includes a command-line interface for training and validation, and models can be exported to CoreML, TFLite, or ONNX formats.

Who it’s for

Developers building license plate recognition systems, especially those who already have a plate detector and need a fast, lightweight OCR step. It suits people who want ready-to-use pre-trained models, as well as those who need to train or fine-tune on custom plate datasets. It also appeals to teams deploying on diverse hardware, from CPUs to GPUs to edge devices like Qualcomm chips.

Highlights

  • Keras 3 backend support – train with TensorFlow, JAX, or PyTorch
  • Lightweight models – cheap to run
  • ONNX Runtime inference – fast and optimised
  • User-friendly CLI – for training and validating models
  • Optional region recognition – predict plate region/country
  • Model hub – collection of pre-trained models ready for inference
  • Train or fine-tune – easily adapt models to your own data
  • Export-friendly – export to CoreML, TFLite, or ONNX

Related

  • Project
  • Project
  • Project
  • Project