Skip to content

如何设置lang = en #117

Closed Answered by SWHL
yonglee7015 asked this question in Q&A
Sep 11, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

我这里并没有复现。请提供截图中所用PDF文件,和对应rapidocr_onnxruntime版本,便于复现。
我用的各个库版本

代码如下:

import fitz
from rapidocr_onnxruntime import RapidOCR

engine = RapidOCR(rec_model_path="en_PP-OCRv3_rec_infer.onnx")

with fitz.open("2009.09941.pdf") as doc:
    for page in doc:
        img = page.get_pixmap(dpi=250)
        res = engine(img.tobytes())

        print(res)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@yonglee7015
Comment options

Comment options

You must be logged in to vote
5 replies
@yonglee7015
Comment options

@SWHL
Comment options

SWHL Sep 12, 2023
Maintainer

@yonglee7015
Comment options

@SWHL
Comment options

SWHL Sep 12, 2023
Maintainer

Answer selected by yonglee7015
@yonglee7015
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants