← 开源
ankandrew

fast-plate-ocr

Lightweight & fast OCR models for license plate text recognition.

ModelsVision modelsDomain-specific modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
780
Star
102
Fork
+7
本周
1
贡献者
创建于 2020-08-07 · 更新于 2026-10-14 · 今日第 13895 名
主要开发者

ankandrew/fast-plate-ocr 排名第 13,895,有 780 个星标。

同类别比较

ankandrew/fast-plate-ocr 排名第 13,895,此处有 8 个同类条目;facebookresearch/contriever 排名第 13,897。

同类别比较
名称排名指标
CMKRG/QiZhenGPT13,875
语言:
Python
星标数:
782
分叉数:
90
简介:
QiZhenGPT: An Open Source Chinese Medical Large Language Model|一个开源的中文医疗大语言模型
Mael-zys/T2M-GPT13,884
语言:
Python
星标数:
781
分叉数:
65
简介:
(CVPR 2023) Pytorch implementation of “T2M-GPT: Generating Human Motion from Textual Descriptions with Discrete Representations”
wtjiang98/PSGAN13,889
语言:
Python
星标数:
781
分叉数:
150
简介:
PyTorch code for "PSGAN: Pose and Expression Robust Spatial-Aware GAN for Customizable Makeup Transfer" (CVPR 2020 Oral)
Alibaba-MIIL/ImageNet21K13,890
语言:
Python
星标数:
780
分叉数:
71
简介:
Official Pytorch Implementation of: "ImageNet-21K Pretraining for the Masses"(NeurIPS, 2021) paper
facebookresearch/contriever13,897
语言:
Python
星标数:
780
分叉数:
69
简介:
Contriever: Unsupervised Dense Information Retrieval with Contrastive Learning
jerryji1993/DNABERT13,898
语言:
Python
星标数:
780
分叉数:
180
简介:
DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome
Boese0601/MagicDance13,910
语言:
Python
星标数:
778
分叉数:
64
简介:
[ICML 2024] MagicPose(also known as MagicDance): Realistic Human Poses and Facial Expressions Retargeting with Identity-aware Diffusion
YuvalNirkin/fsgan13,914
语言:
Jupyter Notebook
星标数:
778
分叉数:
147
简介:
FSGAN - Official PyTorch Implementation
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models,Domain-specific models
关键词Inference optimization, OCR, Unstructured data extraction
星标数780
分叉数102
贡献者1
创建日期2020-08-07
更新日期2026-10-14
1 天星标数0
7 天星标数7
排名13,895
上次排名13,780
排名变化-115
7 天星标排名4,827
上次 7 天星标排名4,272
7 天星标排名变化-555
总星标排名13,625
上次总星标排名13,607
总星标排名变化-18
README 摘录

You can train models from scratch or use the trained models for inference. The idea is to use this after a plate object detector, since the OCR expects the cropped plates. Features **Keras 3 Backend Support**: Train seamlessly using **TensorFlow**, **JAX**, or **PyTorch** backends 🧠 **Efficient Execution**: **Lightweight** models that are cheap to run 💰 **ONNX Runtime Inference**: **Fast** and **optimized** inference with **ONNX runtime** ⚡ **User-Friendly CLI**: Simplified **CLI** for **training** and **validating** OCR models 🛠️ **Region Recognition (Optional)**: Predict **region/country

** of the license plate 🌍 **Model HUB**: Access to a collection of **pre-trained models** ready for inference 🌟 **Train**/**Fine-tune**: Easily train or **fine-tune** your own models 🔧 **Export-Friendly**: Export easily to **CoreML**, **TFLite**, or **ONNX** formats 📦 Available Models Optimized, ready to use models with config files for inference or fine-tuning. TIP] 🚀 Try the above models in Hugging Spaces. NOTE] **Benchmark Setup** These results were obtained with: - **Hardware**: NVIDIA RTX 3090 GPU - **Execution Providers**: - **Install dependencies**: Explore the

Model Zoo to see all available models. Inference For doing inference, install: By default, **no ONNX runtime is installed**. To run inference, you **must** install at least one ONNX backend using an appropriate extra. The field is populated when : To run a model benchmark: For more examples and the full API, see the Inference Guide and Reference. Training You can train models from scratch or fine-tune a pre-trained one using your own license plate dataset. Install the training

dependencies: Fine-tuning Tutorial A complete tutorial notebook is available for fine-tuning a license plate OCR model on your own dataset: . It covers the full workflow, from preparing your dataset to training and exporting the model. For full details on data preparation, model configs, fine-tuning, and training commands, check out the docs. For **region recognition** and export-friendly activations, use the v2 models. Contributing Contributions to the repo are greatly appreciated. Whether it's bug fixes, feature enhancements, or

new models, your contributions are warmly welcomed. To start contributing or to begin development, you can follow these steps: 1. Install all dependencies (make sure you have uv installed): 3. To ensure your changes pass linting and tests before submitting a PR: Citations

常见问题

记录了多少星标和分叉?

ankandrew/fast-plate-ocr 有 780 个星标和 102 个分叉。

仓库排名是多少?

ankandrew/fast-plate-ocr 排名第 13,895。

记录的语言和类别是什么?

ankandrew/fast-plate-ocr 有 780 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

ankandrew/fast-plate-ocr 与 facebookresearch/contriever 比较,后者排名第 13,897,有 780 个星标。

README

Fast & Lightweight License Plate OCR


Introduction

Lightweight and fast OCR models for license plate text recognition. You can train models from scratch or use the trained models for inference.

The idea is to use this after a plate object detector, since the OCR expects the cropped plates.

Features

  • Keras 3 Backend Support: Train seamlessly using TensorFlow, JAX, or PyTorch backends 🧠
  • Efficient Execution: Lightweight models that are cheap to run 💰
  • ONNX Runtime Inference: Fast and optimized inference with ONNX runtime ⚡
  • User-Friendly CLI: Simplified CLI for training and validating OCR models 🛠️
  • Region Recognition (Optional): Predict region/country of the license plate 🌍
  • Model HUB: Access to a collection of pre-trained models ready for inference 🌟
  • Train/Fine-tune: Easily train or fine-tune your own models 🔧
  • Export-Friendly: Export easily to CoreML, TFLite, or ONNX formats 📦

Available Models

Optimized, ready to use models with config files for inference or fine-tuning.

Model Name Size Arch b=1 Avg. Latency (ms) Plates/sec (PPS) Model Config Plate Config Val Results
cct-s-v2-global-model S CCT 0.6758 1479.61 model_config.yaml plate_config.yaml results
cct-xs-v2-global-model XS CCT 0.4664 2144.14 model_config.yaml plate_config.yaml results
cct-s-v1-global-model S CCT 0.5877 1701.63 model_config.yaml plate_config.yaml results
cct-xs-v1-global-model XS CCT 0.3232 3094.21 model_config.yaml plate_config.yaml results

[!TIP] 🚀 Try the above models in Hugging Spaces.

[!NOTE] Benchmark Setup

These results were obtained with:

  • Hardware: NVIDIA RTX 3090 GPU
  • Execution Providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']
  • Install dependencies: pip install fast-plate-ocr[onnx-gpu]

Explore the Model Zoo to see all available models.

Inference

For doing inference, install:

pip install fast-plate-ocr[onnx-gpu]

By default, no ONNX runtime is installed. To run inference, you must install at least one ONNX backend using an appropriate extra.

Platform/Use Case Install Command Notes
CPU (default) pip install fast-plate-ocr[onnx] Cross-platform
NVIDIA GPU (CUDA) pip install fast-plate-ocr[onnx-gpu] Linux/Windows
Intel (OpenVINO) pip install fast-plate-ocr[onnx-openvino] Best on Intel CPUs
Windows (DirectML) pip install fast-plate-ocr[onnx-directml] For DirectML support
Qualcomm (QNN) pip install fast-plate-ocr[onnx-qnn] Qualcomm chipsets

Usage

To predict from disk image:

from fast_plate_ocr import LicensePlateRecognizer

m = LicensePlateRecognizer('cct-s-v2-global-model')
print(m.run('test_plate.png'))

If your model includes a region head (and plate_regions is defined in the plate config), predictions also include region. The region_prob field is populated when return_confidence=True:

from fast_plate_ocr import LicensePlateRecognizer

m = LicensePlateRecognizer('cct-s-v2-global-model')
pred = m.run('test_plate.png', return_confidence=True)[0]
print(pred.region, pred.region_prob)

To run a model benchmark:

from fast_plate_ocr import LicensePlateRecognizer

m = LicensePlateRecognizer('cct-s-v2-global-model')
m.benchmark()

For more examples and the full API, see the Inference Guide and Reference.

Training

You can train models from scratch or fine-tune a pre-trained one using your own license plate dataset.

Install the training dependencies:

pip install fast-plate-ocr[train]

Fine-tuning Tutorial

A complete tutorial notebook is available for fine-tuning a license plate OCR model on your own dataset: examples/fine_tune_workflow.ipynb. It covers the full workflow, from preparing your dataset to training and exporting the model.

For full details on data preparation, model configs, fine-tuning, and training commands, check out the docs.

For region recognition and export-friendly activations, use the v2 models.

Contributing

Contributions to the repo are greatly appreciated. Whether it's bug fixes, feature enhancements, or new models, your contributions are warmly welcomed.

To start contributing or to begin development, you can follow these steps:

  1. Clone repo
    git clone https://github.com/ankandrew/fast-plate-ocr.git
    
  2. Install all dependencies (make sure you have uv installed):
    make install
    
  3. To ensure your changes pass linting and tests before submitting a PR:
    make checks
    

Citations

@article{hassani2021escaping,
    title   = {Escaping the Big Data Paradigm with Compact Transformers},
    author  = {Ali Hassani and Steven Walton and Nikhil Shah and Abulikemu Abuduweili and Jiachen Li and Humphrey Shi},
    year    = 2021,
    url     = {https://arxiv.org/abs/2104.05704},
    eprint  = {2104.05704},
    archiveprefix = {arXiv},
    primaryclass = {cs.CV}
}
排名相邻
同类项目