docato commited on
Commit
522276a
·
verified ·
1 Parent(s): 7929901

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -3
README.md CHANGED
@@ -1,3 +1,38 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ - tr
6
+ ---
7
+
8
+ # PaddleOCR Mobile Quantized Models (ONNX)
9
+
10
+ <details>
11
+ <summary><strong>🇬🇧 English README</strong></summary>
12
+
13
+ ## Overview
14
+ This repo hosts four **ONNX** models converted from PaddleOCR mobile checkpoints
15
+
16
+ | File | Task | Language scope | Input shape |
17
+ |------|------|----------------|-------------|
18
+ | `Multilingual_PP-OCRv3_det_infer.onnx` | Text-detection | 80+ scripts | **NCHW • 1×3×H×W** |
19
+ | `PP-OCRv3_mobile_det_infer.onnx` | Text-detection | Latin only | 1×3×H×W |
20
+ | `ch_ppocr_mobile_v2.0_cls_infer.onnx` | Angle classifier | Chinese/Latin | 1×3×H×W |
21
+ | `latin_PP-OCRv3_mobile_rec_infer.onnx` | Text-recognition | Latin | 1×3×H×W |
22
+
23
+ All models were:
24
+ * exported with **paddle2onnx 1.2.3** (`opset 11`)
25
+ * simplified via **onnx-simplifier 0.4+**
26
+
27
+ ## Quick Start
28
+
29
+ ```python
30
+ import onnxruntime as ort, numpy as np
31
+ img = np.random.rand(1, 3, 224, 224).astype("float32")
32
+
33
+ det = ort.InferenceSession("Multilingual_PP-OCRv3_det_infer.onnx")
34
+ cls = ort.InferenceSession("ch_ppocr_mobile_v2.0_cls_infer.onnx")
35
+ rec = ort.InferenceSession("latin_PP-OCRv3_mobile_rec_infer.onnx")
36
+
37
+ det_out = det.run(None, {det.get_inputs()[0].name: img})[0]
38
+ # add your post-processing / cropping / decoding here …