Skip to content

Commit 7203fcf

Browse files
committed
docs: update parameters of rapidocr
1 parent 7c9e97d commit 7203fcf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/install_usage/rapidocr/parameters.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Global:
3333
return_single_char_box: false
3434

3535
font_path: null
36+
log_level: "info" # debug / info / warning / error / critical
3637
```
3738
3839
`text_score (float)`: 文本识别结果置信度,值越大,把握越大。取值范围:`[0, 1]`, 默认值是0.5。
@@ -73,6 +74,10 @@ result = engine(img_url, return_word_box=True, return_single_char_box=True)
7374

7475
`font_path (str)`: 字体文件路径。如不提供,程序会自动下载预置的字体文件模型到本地。默认为`null`。
7576

77+
`log_level (str)`: 日志级别设置。可选择的有`debug / info / warning / error / critical`,默认为`info`,会打印加载模型等日志。如果设置`critical`,则不会打印任何日志。
78+
79+
> 在`rapidocr==3.4.0`中,才添加此参数。
80+
7681
#### EngineConfig
7782

7883
该部分为相关推理引擎的配置文件,大家可按需配置。该部分后面可能会增删部分关键字,如果有需求,可以在文档下面评论区指出。
@@ -327,8 +332,13 @@ class LangRec(Enum):
327332
LATIN = "latin"
328333
TA = "ta"
329334
TE = "te"
335+
ESLAV = "eslav"
336+
TH = "th"
337+
EL = "el"
330338
```
331339

340+
> `TH`和`EL`在`rapidocr>=3.4.0`中才支持
341+
332342
`model_type (str)`: 同Det部分介绍。
333343

334344
`ocr_version (str)`: 同Det部分介绍。

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ plugins:
7878
- git-revision-date-localized:
7979
enable_creation_date: true
8080

81+
8182
markdown_extensions:
8283
- abbr
8384
- attr_list

0 commit comments

Comments
 (0)