mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-10 21:10:55 +08:00
* chore: update files * chore: update files * chore: update files * chore: update files * chore: update files * chore: update files * chore: update files
13 lines
334 B
Python
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")
|