Files
rapidocr/python/tests/test_files/config.yaml
T
2025-02-11 14:30:01 +08:00

63 lines
1.3 KiB
YAML

Global:
lang: "ch"
text_score: 0.5
use_det: true
use_cls: true
use_rec: true
print_verbose: false
min_height: 30
width_height_ratio: 8
max_side_len: 2000
min_side_len: 30
return_word_box: false
with_onnx: false
with_openvino: false
with_paddle: false
with_torch: false
EngineConfig:
onnxruntime:
intra_op_num_threads: -1
inter_op_num_threads: -1
use_cuda: false
use_dml: false
paddlepaddle:
cpu_math_library_num_threads: -1
gpu_id: 0
gpu_mem: 500
Det:
model_path: models/ch_PP-OCRv4_det_infer.onnx
paddle_model_dir: models/paddle/ch_PP-OCRv4_det_infer
limit_side_len: 736
limit_type: min
std: [ 0.5, 0.5, 0.5 ]
mean: [ 0.5, 0.5, 0.5 ]
thresh: 0.3
box_thresh: 0.5
max_candidates: 1000
unclip_ratio: 1.6
use_dilation: true
score_mode: fast
Cls:
model_path: models/ch_ppocr_mobile_v2.0_cls_infer.onnx
paddle_model_dir: models/paddle/ch_ppocr_mobile_v2_cls_infer
cls_image_shape: [3, 48, 192]
cls_batch_num: 6
cls_thresh: 0.9
label_list: ['0', '180']
Rec:
model_path: models/ch_PP-OCRv4_rec_infer.onnx
paddle_model_dir: models/paddle/ch_PP-OCRv4_rec_infer
rec_img_shape: [3, 48, 320]
rec_batch_num: 6