Commit
·
5ac86e1
1
Parent(s):
433b7bc
Upload 4 files
Browse filesadd model and config
- ch_PP-OCRv4_server_det.onnx +3 -0
- ch_PP-OCRv4_server_det.yaml +27 -0
- ch_PP-OCRv4_server_rec.onnx +3 -0
- ch_PP-OCRv4_server_rec.yaml +17 -0
ch_PP-OCRv4_server_det.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fc804d5eb8021509160f7c580759ca58f5737e1b3e32260813fb057a1607e71
|
| 3 |
+
size 113189862
|
ch_PP-OCRv4_server_det.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PostProcess:
|
| 2 |
+
name: DBPostProcess
|
| 3 |
+
thresh: 0.3
|
| 4 |
+
box_thresh: 0.6
|
| 5 |
+
max_candidates: 1000
|
| 6 |
+
unclip_ratio: 1.5
|
| 7 |
+
Transforms:
|
| 8 |
+
- DecodeImage:
|
| 9 |
+
img_mode: BGR
|
| 10 |
+
channel_first: false
|
| 11 |
+
- DetResizeForTest: null
|
| 12 |
+
- NormalizeImage:
|
| 13 |
+
scale: 1./255.
|
| 14 |
+
mean:
|
| 15 |
+
- 0.485
|
| 16 |
+
- 0.456
|
| 17 |
+
- 0.406
|
| 18 |
+
std:
|
| 19 |
+
- 0.229
|
| 20 |
+
- 0.224
|
| 21 |
+
- 0.225
|
| 22 |
+
order: hwc
|
| 23 |
+
- ToCHWImage: null
|
| 24 |
+
- KeepKeys:
|
| 25 |
+
keep_keys:
|
| 26 |
+
- image
|
| 27 |
+
- shape
|
ch_PP-OCRv4_server_rec.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce322ce7f5f1296b02d84b9414a2f014f54eca05d7560e27ecfc4cf3d8be085b
|
| 3 |
+
size 90377463
|
ch_PP-OCRv4_server_rec.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PostProcess:
|
| 2 |
+
name: CTCLabelDecode
|
| 3 |
+
character_dict_path: ppocr/utils/ppocr_keys_v1.txt
|
| 4 |
+
use_space_char: true
|
| 5 |
+
Transforms:
|
| 6 |
+
- DecodeImage:
|
| 7 |
+
img_mode: BGR
|
| 8 |
+
channel_first: false
|
| 9 |
+
- RecResizeImg:
|
| 10 |
+
image_shape:
|
| 11 |
+
- 3
|
| 12 |
+
- 48
|
| 13 |
+
- 320
|
| 14 |
+
infer_mode: true
|
| 15 |
+
- KeepKeys:
|
| 16 |
+
keep_keys:
|
| 17 |
+
- image
|