Image-to-Text
Hezar
Persian
arxyzan commited on
Commit
9160227
1 Parent(s): 9492734

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -19,4 +19,17 @@ The improvements include:
19
  - Auto-handling of LTR characters like digits in between the text
20
 
21
  Note that this model is only optimized for printed/scanned documents and works best on texts with a length of up to 50-ish characters. (For an end-to-end OCR pipeline, use a text detector model first to
22
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  - Auto-handling of LTR characters like digits in between the text
20
 
21
  Note that this model is only optimized for printed/scanned documents and works best on texts with a length of up to 50-ish characters. (For an end-to-end OCR pipeline, use a text detector model first to
22
+ 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.
23
+
24
+ #### Usage
25
+ ```
26
+ pip install hezar
27
+ ```
28
+
29
+ ```python
30
+ from hezar import Model
31
+
32
+ crnn = Model.load("hezarai/crnn-fa-printed-96-long")
33
+ texts = crnn.predict(["sample_image.jpg"])
34
+ print(texts)
35
+ ```