Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何设置识别语言为英文 #16

Open
achenjie opened this issue Jul 23, 2024 · 4 comments
Open

如何设置识别语言为英文 #16

achenjie opened this issue Jul 23, 2024 · 4 comments

Comments

@achenjie
Copy link

大佬您好:

我需要把里面的中文识别模型替换成英文模型 en_PP-OCRv4_rec_infer.onnx,并设置 lang="en" 不生效,对比原来的paddleocr的配置文件,是可以设置其他语言模型的,请问如何设置识别语言为英文。

希望能得到您的回复!

感谢。

@jingsongliujing
Copy link
Owner

jingsongliujing commented Jul 23, 2024 via email

@achenjie
Copy link
Author

好的,我直接把原paddleocr\ppocr\utils 目录下的 en_dict.txt 替换onnxocr\models\ch_ppocr_server_v2.0 下的 ppocr_keys_v1.txt 就可以是是吧。

@jingsongliujing
Copy link
Owner

jingsongliujing commented Jul 23, 2024 via email

@achenjie
Copy link
Author

好的,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants