10 lines
262 B
Python
10 lines
262 B
Python
from rapidocr import RapidOCR
|
|
|
|
engine = RapidOCR()
|
|
|
|
img_url = "history_wangzhen_long.png"
|
|
result = engine(img_url)
|
|
print(result)
|
|
|
|
# 可视化会触发程序自动下载所需字体文件。如果是离线环境,可注释掉该行
|
|
# result.vis("vis_result.jpg") |