31 lines
574 B
Plaintext
31 lines
574 B
Plaintext
# model load config
|
|
use_gpu 0
|
|
gpu_id 0
|
|
gpu_mem 4000
|
|
cpu_math_library_num_threads 10
|
|
use_mkldnn 0
|
|
|
|
# det config
|
|
max_side_len 960
|
|
det_db_thresh 0.3
|
|
det_db_box_thresh 0.5
|
|
det_db_unclip_ratio 2.0
|
|
det_model_dir ./inference/ch_ppocr_mobile_v2.0_det_infer/
|
|
|
|
# cls config
|
|
use_angle_cls 0
|
|
cls_model_dir ./inference/ch_ppocr_mobile_v2.0_cls_infer/
|
|
cls_thresh 0.9
|
|
|
|
# rec config
|
|
rec_model_dir ./inference/ch_ppocr_mobile_v2.0_rec_infer/
|
|
char_list_file ../../ppocr/utils/ppocr_keys_v1.txt
|
|
|
|
# show the detection results
|
|
visualize 1
|
|
|
|
# use_tensorrt
|
|
use_tensorrt 0
|
|
use_fp16 0
|
|
|