Skip to content

Commit 2f3791f

Browse files
committed
docs(quickstart): update use
1 parent f53be52 commit 2f3791f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/quickstart.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pip install rapidocr
1616
=== "命令行使用"
1717

1818
```bash linenums="1"
19-
rapidocr -img tests/test_files/ch_en_num.jpg --vis_res
19+
rapidocr -img "https://github.com/RapidAI/RapidOCR/blob/main/python/tests/test_files/ch_en_num.jpg?raw=true" --vis_res
2020
```
2121

2222
=== "Python使用"
@@ -27,13 +27,11 @@ pip install rapidocr
2727

2828
engine = RapidOCR()
2929

30-
img_path = "tests/test_files/ch_en_num.jpg"
30+
img_url = "https://github.com/RapidAI/RapidOCR/blob/main/python/tests/test_files/ch_en_num.jpg?raw=true"
3131
result = engine(img_path)
3232
print(result)
3333

34-
vis = VisRes()
35-
vis_img = vis(img, result.boxes, result.txts, result.scores)
36-
cv2.imwrite("vis.png", vis_img)
34+
result.vis()
3735
```
3836

3937
### 3. 查看可视化结果

0 commit comments

Comments
 (0)