File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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. 查看可视化结果
You can’t perform that action at this time.
0 commit comments