Downloads · 30 days
81
3% of all-time downloads
hezarai/crnn-base-fa-v1
crnn-base-fa-v1 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 CRNN model for Persian OCR. This model is based on a simple CNN + LSTM architecture inspired by this paper. More info about data and training will be provided soon.
Downloads · 30 days
81
3% of all-time downloads
All-time downloads
2.7K
Public
Repo size
37.1 MB
Likes
5
Public
Click a slice to open those files.
.pt37.1 MB · 100%
From the Hugging Face model README
A CRNN model for Persian OCR. This model is based on a simple CNN + LSTM architecture inspired by this paper. More info about data and training will be provided soon.
Note that this model is only optimized for scanned documents and supports input characters of up to 32 (For an end-to-end OCR pipeline, use a text detector model first to extract text boxes preferrably in word-level and then use this model), but it can be used to be fine-tuned on other domains like license plate or handwritten texts.
This model is best suited for Persian alphabet and lacks the ability to recognize numbers and digits properly. We'll soon retrain this model to fit all scenarios.
pip install hezar
from hezar.models import Model
crnn = Model.load("hezarai/crnn-base-fa-v1")
texts = crnn.predict(["sample_image.jpg"])
print(texts)