config.txt 574 B

123456789101112131415161718192021222324252627282930
  1. # model load config
  2. use_gpu 0
  3. gpu_id 0
  4. gpu_mem 4000
  5. cpu_math_library_num_threads 10
  6. use_mkldnn 0
  7. # det config
  8. max_side_len 960
  9. det_db_thresh 0.3
  10. det_db_box_thresh 0.5
  11. det_db_unclip_ratio 1.6
  12. det_model_dir ./inference/ch_ppocr_mobile_v2.0_det_infer/
  13. # cls config
  14. use_angle_cls 0
  15. cls_model_dir ./inference/ch_ppocr_mobile_v2.0_cls_infer/
  16. cls_thresh 0.9
  17. # rec config
  18. rec_model_dir ./inference/ch_ppocr_mobile_v2.0_rec_infer/
  19. char_list_file ../../ppocr/utils/ppocr_keys_v1.txt
  20. # show the detection results
  21. visualize 1
  22. # use_tensorrt
  23. use_tensorrt 0
  24. use_fp16 0