Files
rapidocr/python/demo.py
T
SWHL 41d5824e13 feat: adapt PR #451
* feat: adapt CANN of onnxruntime (PR #428)

* chore: fix typos

* docs: update README

* fix(rapidocr): fixed issue #438

* chore: update files

* chore: update files

* chore: update files
2025-06-10 20:36:41 +08:00

13 lines
300 B
Python

# -*- encoding: utf-8 -*-
# @Author: SWHL
# @Contact: liekkaskono@163.com
from rapidocr import RapidOCR
engine = RapidOCR()
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)
print(result)
result.vis("vis_result.jpg")