karthik87s commited on
Commit
b8fa34e
·
verified ·
1 Parent(s): 34a481b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +16 -7
README.md CHANGED
@@ -20,6 +20,13 @@ The recognition dictionary is Chinese + English (6,904 characters), so Latin
20
  text, digits and punctuation decode natively; Japanese, Korean, Cyrillic and
21
  Arabic are not covered.
22
 
 
 
 
 
 
 
 
23
  ## Files
24
 
25
  | File | Purpose |
@@ -33,7 +40,6 @@ Arabic are not covered.
33
  | `ppocr_det_dynamic.onnx` | fp32 detection, CPU reference for accuracy checks |
34
  | `ppocr_rec_dynamic.onnx` | fp32 recognition, CPU reference for accuracy checks |
35
  | `samples/sample.jpg` | Sample café menu card, 10 text lines |
36
- | `samples/sample.png` | Sample document page, 99 text lines |
37
 
38
  ### Why four recognition models
39
 
@@ -66,13 +72,16 @@ NPU output against a CPU reference.
66
 
67
  ## Measured on SL2619
68
 
69
- | Sample | Lines | Detection | Recognition |
70
- |---|---|---|---|
71
- | `sample.jpg` (menu card, 912×1200) | 10 | ~0.52 s | ~1.2 s |
72
- | `sample.png` (paper page, 1224×1584) | 99 | ~0.70 s | ~22.2 s |
 
 
73
 
74
- Recognition scales with line count because each line is a separate invocation —
75
- the bucket models are compiled with a static batch of 1.
 
76
 
77
  ### About `sample.jpg`
78
 
 
20
  text, digits and punctuation decode natively; Japanese, Korean, Cyrillic and
21
  Arabic are not covered.
22
 
23
+ | Input — `samples/sample.jpg` | NPU output — boxes + recognized text |
24
+ |:---:|:---:|
25
+ | <img src="https://huggingface.co/Synaptics/paddle-paddle-tiny/resolve/main/samples/sample.jpg" width="380"> | <img src="https://huggingface.co/Synaptics/paddle-paddle-tiny/resolve/main/assets/sample_ocr.jpg" width="380"> |
26
+
27
+ All ten lines are read correctly at confidence ≥ 0.966, in 1.7 s end to end on
28
+ an SL2619.
29
+
30
  ## Files
31
 
32
  | File | Purpose |
 
40
  | `ppocr_det_dynamic.onnx` | fp32 detection, CPU reference for accuracy checks |
41
  | `ppocr_rec_dynamic.onnx` | fp32 recognition, CPU reference for accuracy checks |
42
  | `samples/sample.jpg` | Sample café menu card, 10 text lines |
 
43
 
44
  ### Why four recognition models
45
 
 
72
 
73
  ## Measured on SL2619
74
 
75
+ `samples/sample.jpg`, 912×1200, 10 text lines detected:
76
+
77
+ | Stage | Time |
78
+ |---|---|
79
+ | Detection (800×608) | ~0.53 s |
80
+ | Recognition (10 lines, bucketed) | ~1.19 s |
81
 
82
+ Recognition scales with the number of detected lines, because each line is a
83
+ separate invocation — the bucket models are compiled with a static batch of 1.
84
+ A dense page of 99 lines takes roughly 22 s.
85
 
86
  ### About `sample.jpg`
87