如何设置lang = en #117
如何设置lang = en
#117
-
rapidocr 在哪里可以设置lang =en?目前默认的ch-en识别出来的文字效果不好,我想像paddleocr那样直接设置语言为en. |
Beta Was this translation helpful? Give feedback.
Answered by
SWHL
Sep 12, 2023
Replies: 2 comments 6 replies
-
这个不支持的,如果要用en模型,需要在初始化时,指定英文模型使用。类似下面这样: from rapidocr_onnxruntime import RapidOCR
engine = RapidOCR(rec_model_path='en_PP-OCRv3_rec_infer.onnx') |
Beta Was this translation helpful? Give feedback.
1 reply
-
用在线转换的工具转,会自动将txt_path写到onnx中,下载即可使用。 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我这里并没有复现。请提供截图中所用PDF文件,和对应
rapidocr_onnxruntime
版本,便于复现。我用的各个库版本
rapidocr_onnxruntime==1.3.2
PyMuPDF==1.22.5
代码如下: