Skip to content

Commit af2ac36

Browse files
committed
docs(rapidocr): update usage
1 parent 31e43c5 commit af2ac36

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/install_usage/rapidocr/usage.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ result.vis()
103103

104104
其他参数传入方式,基本就是参考`config.yaml`,关键字之间用点分割,直接写就可以了。例如:
105105

106-
<div class="grid" markdown>
106+
<div class="grid cards" markdown>
107107

108-
=== "`config.yaml`"
108+
- __`config.yaml`__
109+
110+
---
109111

110112
```yaml linenums="1"
111113
Global:
@@ -118,17 +120,19 @@ result.vis()
118120
gpu_id: 0
119121
```
120122

121-
```title="对应参数写法"
122-
```python linenums="1"
123-
{
124-
"Global.with_openvino": True,
125-
"Global.use_det": True,
126-
"EngineConfig.torch.use_cuda", True, # 使用torch GPU版推理
127-
"EngineConfig.torch.gpu_id": 1, # 指定GPU id
128-
}
129-
```
130-
131-
```
123+
- __对应参数写法__
124+
125+
---
126+
127+
```python linenums="1"
128+
{
129+
"Global.with_openvino": True,
130+
"Global.use_det": True,
131+
"EngineConfig.torch.use_cuda", True, # 使用torch GPU版推理
132+
"EngineConfig.torch.gpu_id": 1, # 指定GPU id
133+
}
134+
```
135+
132136
</div>
133137

134138
#### 输出

0 commit comments

Comments
 (0)