File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
docs/install_usage/rapidocr Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ Global:
3030 min_side_len : 30
3131
3232 return_word_box : false
33+ return_single_char_box : false
3334
3435 font_path : null
3536` ` `
@@ -59,6 +60,14 @@ Global:
5960- 在`rapidocr_onnxruntime>=1.4.1`中,汉字返回单字坐标,英语返回单字母坐标。
6061- 在`rapidocr_onnxruntime==1.4.0`中,汉字会返回单字坐标,英语返回单词坐标。
6162
63+ `return_single_char_box (bool)` : 文本内容只有英文和数字情况下,是否返回单字坐标。默认为`False`。
64+
65+ - 在`rapidocr>=3.1.0`中添加该参数,该参数只有在`return_word_box=True`时,才能生效。举例说明:
66+
67+ ` ` ` python
68+ result = engine(img_url, return_word_box=True, return_single_char_box=True)
69+ ` ` `
70+
6271`font_path (str)` : 字体文件路径。如不提供,程序会自动下载预置的字体文件模型到本地。默认为`null`。
6372
6473# ### EngineConfig
@@ -71,8 +80,28 @@ EngineConfig:
7180 intra_op_num_threads: -1
7281 inter_op_num_threads: -1
7382 enable_cpu_mem_arena: false
83+
84+ cpu_ep_cfg:
85+ arena_extend_strategy: "kSameAsRequested"
86+
7487 use_cuda: false
88+ cuda_ep_cfg:
89+ device_id: 0
90+ arena_extend_strategy: "kNextPowerOfTwo"
91+ cudnn_conv_algo_search: "EXHAUSTIVE"
92+ do_copy_in_default_stream: true
93+
7594 use_dml: false
95+ dm_ep_cfg: null
96+
97+ use_cann: false
98+ cann_ep_cfg:
99+ device_id: 0
100+ arena_extend_strategy: "kNextPowerOfTwo"
101+ npu_mem_limit: 20 * 1024 * 1024 * 1024
102+ op_select_impl_mode: "high_performance"
103+ optypelist_for_implmode: "Gelu"
104+ enable_cann_graph: true
76105
77106 openvino:
78107 inference_num_threads: -1
Original file line number Diff line number Diff line change 11site_name : RapidOCR 文档
2- site_url : https://rapidai.github.io/RapidOCRDocs/main/
2+ site_url : https://rapidai.github.io/RapidOCRDocs/
33site_author : RapidAI
44site_description :
55 Awesome OCR multiple programing languages toolkits based on ONNXRuntime, OpenVION and PaddlePaddle.
You can’t perform that action at this time.
0 commit comments