Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

chore: update demo code

SWHL860adea7e1c8
diff --git a/python/demo.py b/python/demo.py
index 5384503..a0b1bb3 100644
--- a/python/demo.py
+++ b/python/demo.py
@@ -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")