mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-10 21:10:55 +08:00
chore: update demo code
This commit is contained in:
1 parent
30f3727e37
commit
860adea7e1
1 file changed
+2
-2
+2
-2
@@ -5,8 +5,8 @@ from rapidocr import RapidOCR
|
||||
|
||||
engine = RapidOCR()
|
||||
|
||||
img_url = "tests/test_files/ch_en_num.jpg"
|
||||
result = engine(img_url)
|
||||
img_url = "https://img1.baidu.com/it/u=3619974146,1266987475&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=516"
|
||||
result = engine(img_url, return_word_box=True, return_single_char_box=True)
|
||||
print(result)
|
||||
|
||||
result.vis("vis_result.jpg")
|
||||
|
||||
Reference in new issue
Block a user