arxyzan commited on
Commit
9d27a54
1 Parent(s): a6e0b5f

Create README.md

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