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

FastDeploy推理PPOCR过程加载字库文件ppocr_keys_v1.txt出现的编码报错的异常 #2472

Open
GentlerMan opened this issue Jun 13, 2024 · 1 comment
Assignees

Comments

@GentlerMan
Copy link

在Windows使用C#版本编译的fastDeploy中的PPOCRV3推理过程,按照教程里面加载字典模型,官方提供的字库链接(https://gitee.com/paddlepaddle/PaddleOCR/raw/release/2.6/ppocr/utils/ppocr_keys_v1.txt)
但是有个问题是,默认这个文件是UTF-8编码的,使用该模式直接加载文件,使用fastDeploy推理时,会出现以下报错:

image

当把文件使用记事本工具打开并以ANSI编码保存后重新加载,才能正常推理,请问下fastDeploy是否提供了读取该TXT的编码选型,方便直接读取UTF8编码模式的字库?

@Jiang-Jia-Jun
Copy link
Collaborator

目前确实没提供编码的支持。

当前读取文件是很简单的代码读取操作,欢迎贡献代码,支持解决不同环境上编码的配置。

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

3 participants