Downloads · 30 days
3K
7% of all-time downloads
hezarai/crnn-fa-license-plate-recognition-v2
crnn-fa-license-plate-recognition-v2 is a image-to-text model from hezarai. Use it when you need a caption or text from an image. It is set up for hezar.
A robust CRNN-based OCR model for license plate recognition (Persian only)(V2). This model is a finetuned version of hezarai/crnn-fa-printed-96-long on the Persian license plate dataset (v1).
Downloads · 30 days
3K
7% of all-time downloads
All-time downloads
44.7K
Public
Repo size
37.2 MB
Likes
6
Public
Click a slice to open those files.
.pt37.2 MB · 100%
From the Hugging Face model README
A robust CRNN-based OCR model for license plate recognition (Persian only)(V2). This model is a finetuned version of hezarai/crnn-fa-printed-96-long on the Persian license plate dataset (v1).
Note that this model only works on a cropped image of a plate, so you have to run an object(license plate) detection model and pass its output to this model to work.
pip install hezar
from hezar.models import Model
model = Model.load("hezarai/crnn-fa-license-plate-recognition-v2")
plate_text = model.predict("assets/license_plate_ocr_example.jpg")
print(plate_text) # Persian text of mixed numbers and characters might not show correctly in the console
['۵۷س۷۷۹۷۷']