arxyzan commited on
Commit
b450c0c
·
verified ·
1 Parent(s): b411605

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - fa
4
+ library_name: hezar
5
+ tags:
6
+ - image-to-text
7
+ - hezar
8
+ datasets:
9
+ - hezarai/persian-license-plate-v1
10
+ pipeline_tag: image-to-text
11
+ ---
12
+ 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](https://huggingface.co/hezarai/crnn-fa-printed-96-long)
13
+ on the [Persian license plate dataset (v1)](https://huggingface.co/datasets/hezarai/persian-license-plate-v1).
14
+
15
+ 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.
16
+
17
+ ## Usage
18
+ ```
19
+ pip install hezar
20
+ ```
21
+ ```python
22
+ from hezar.models import Model
23
+
24
+ model = Model.load("hezarai/crnn-fa-printed-96-long")
25
+ plate_text = model.predict("assets/license_plate_ocr_example.jpg")
26
+ print(plate_text) # Persian text of mixed numbers and characters might not show correctly in the console
27
+ ```
28
+ ```
29
+ ['۵۷س۷۷۹۷۷']
30
+ ```