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

OCR报错 #6

Closed
GJKen opened this issue Jul 11, 2022 · 28 comments
Closed

OCR报错 #6

GJKen opened this issue Jul 11, 2022 · 28 comments
Labels
bug 错误

Comments

@GJKen
Copy link

GJKen commented Jul 11, 2022

使用快捷键 alt+c 截图选框并按下 ocr 按钮报错

Error: Command failed: CHCP 65001 && cd C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model && C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr.exe --det_model_dir=inference/ch_PP-OCRv2_det_infer --rec_model_dir=inference/ch_PP-OCRv2_rec_infer --char_list_file=ppocr_keys_v1.txt --image_dir=C:\Users\ADMINI~1\AppData\Local\Temp\eSearch\ocr.png


C++ Traceback (most recent call last):


Not support stack backtrace yet.


Error Message Summary:


NotFoundError: Cannot open file inference/ch_PP-OCRv2_det_infer/inference.pdmodel, please confirm whether the file is normal.

[Hint: Expected static_cast(fin.is_open()) == true, but received static_cast(fin.is_open()):0 != true:1.] (at C:\home\workspace\Paddle_release\paddle\fluid\inference\api\analysis_predictor.cc:1119)

@xushengfeng
Copy link
Owner

尝试在 设置-文字识别(OCR)-离线OCR-删除离线OCR,然后再下载

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

还是不行 同样的报错

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

image
在线OCR也有报错

@xushengfeng
Copy link
Owner

image 在线OCR也有报错

这好像还是离线OCR

@xushengfeng
Copy link
Owner

安装OCR时会有一个 Microsoft Visual C++ 的弹窗,安装了吗?

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

安装OCR时会有一个 Microsoft Visual C++ 的弹窗,安装了吗?

没有 我点击下载离线OCR的时候只看到网络在波动 下载完成之后啥也没发生
我以为下载完成就算成功了
我的 Windows 已经安装了Microsoft Visual C++

@xushengfeng
Copy link
Owner

安装OCR时会有一个 Microsoft Visual C++ 的弹窗,安装了吗?

没有 我点击下载离线OCR的时候只看到网络在波动 下载完成之后啥也没发生 我以为下载完成就算成功了 我的 Windows 已经安装了Microsoft Visual C++

C:\Users\Administrator\AppData\Roaming\eSearch\ocr\下找到cp15e.exe运行安装

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

安装OCR时会有一个 Microsoft Visual C++ 的弹窗,安装了吗?

没有 我点击下载离线OCR的时候只看到网络在波动 下载完成之后啥也没发生 我以为下载完成就算成功了 我的 Windows 已经安装了Microsoft Visual C++

C:\Users\Administrator\AppData\Roaming\eSearch\ocr\下找到cp15e.exe运行安装

刚刚我试过了 提示已经安装

@xushengfeng
Copy link
Owner

所以还是报错吗

看看\ocr\ppocr_model\inference\ch_PP-OCRv2_det_infer文件夹下有没有inference.pdmodel

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

所以还是报错吗

看看\ocr\ppocr_model\inference\ch_PP-OCRv2_det_infer文件夹下有没有inference.pdmodel

image
有的
OCR 还是同样的报错

@xushengfeng
Copy link
Owner

是issue的那个还是乱码的那个?

复制Command failed:后面的命令一直到ocr.png到命令提示符运行看看?

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

是issue的那个还是乱码的那个?

复制Command failed:后面的命令一直到ocr.png到命令提示符运行看看?

issuce 那个是离线报错

运行能成功识别到文字欸
image

@xushengfeng
Copy link
Owner

就是说,软件提示错误,但命令行能正确识别

我知道了,应该是软件的问题,我会继续排查bug

@GJKen
Copy link
Author

GJKen commented Jul 12, 2022

对的

@SongTong98
Copy link

大神好,与这位老哥一样的问题

@xushengfeng
Copy link
Owner

https://wwt.lanzouv.com/ifymC07rlkmd

能试一下这个补丁版的离线ocr能正常运作吗?是免安装模式的,解压后就可以运行了

@GJKen
Copy link
Author

GJKen commented Jul 13, 2022

https://wwt.lanzouv.com/ifymC07rlkmd

能试一下这个补丁版的离线ocr能正常运作吗?是免安装模式的,解压后就可以运行了

以下是报错信息

Error: Command failed: CHCP 65001 && cd C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model && C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr.exe --det_model_dir=inference\ch_PP-OCRv2_det_infer --rec_model_dir=inference\ch_PP-OCRv2_rec_infer --char_list_file=ppocr_keys_v1.txt --image_dir=C:\Users\ADMINI~1\AppData\Local\Temp\eSearch\ocr.png


C++ Traceback (most recent call last):


Not support stack backtrace yet.


Error Message Summary:


NotFoundError: Cannot open file inference\ch_PP-OCRv2_det_infer/inference.pdmodel, please confirm whether the file is normal.

[Hint: Expected static_cast(fin.is_open()) == true, but received static_cast(fin.is_open()):0 != true:1.] (at C:\home\workspace\Paddle_release\paddle\fluid\inference\api\analysis_predictor.cc:1119)

@xushengfeng
Copy link
Owner

那再试一下在设置-离线OCR中指定
det模型:
C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model\inference\ch_PP-OCRv2_det_infer
rec模型:
C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model\inference\ch_PP-OCRv2_rec_infer

@GJKen
Copy link
Author

GJKen commented Jul 13, 2022

报错信息
image

@jjjyyyllll
Copy link

那再试一下在设置-离线OCR中指定 det模型: C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model\inference\ch_PP-OCRv2_det_infer rec模型: C:\Users\Administrator\AppData\Roaming\eSearch\ocr\ppocr_model\inference\ch_PP-OCRv2_rec_infer

一样报错 报错

@jjjyyyllll
Copy link

离线报错 软件下载或者用eSearch-OCR
设置det模型 和 rec 模型 还是一样报错

@jjjyyyllll
Copy link

https://wwt.lanzouv.com/ifymC07rlkmd

能试一下这个补丁版的离线ocr能正常运作吗?是免安装模式的,解压后就可以运行了

你这个补丁版 也很神奇。 放到桌面上 用离线OCR正常 放到其他盘就是如上的报错了

@xushengfeng
Copy link
Owner

我明白了,因为系统原因,相对路径设置错误,这就修

@xushengfeng
Copy link
Owner

https://wwt.lanzouv.com/iGw5a07s01if
补丁版2

不出意外的话应该正常

@GJKen
Copy link
Author

GJKen commented Jul 13, 2022

https://wwt.lanzouv.com/iGw5a07s01if 补丁版2

不出意外的话应该正常

OK了 能成功显示OCR内容

@xushengfeng
Copy link
Owner

太好了,正式修复版将在下一版本上

@GJKen
Copy link
Author

GJKen commented Jul 13, 2022

太好了,正式修复版将在下一版本上

感谢修复

@GJKen GJKen closed this as completed Jul 13, 2022
@jjjyyyllll
Copy link

https://wwt.lanzouv.com/iGw5a07s01if 补丁版2

不出意外的话应该正常

OK 目前正常了

@xushengfeng xushengfeng added the bug 错误 label Jul 17, 2022
@xushengfeng xushengfeng mentioned this issue Aug 6, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 错误
Projects
None yet
Development

No branches or pull requests

4 participants