Files
rapidocr/python/demo.py
T
SWHL 80c72f54e9 feat(rapidocr): integrated PP-OCRv4_dervr_rec-d oc model (#426)
* chore: update files

* chore: update files

* chore: update files

* chore: update files

* chore: update files

* chore: update files

* chore: update files
2025-05-16 09:27:01 +08:00

13 lines
334 B
Python

# -*- encoding: utf-8 -*-
# @Author: SWHL
# @Contact: liekkaskono@163.com
from rapidocr import RapidOCR
engine = RapidOCR(params={"Global.with_torch": True})
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")