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

上传图片后ddddocr.exe崩溃了 #3

Open
netfun2000 opened this issue Nov 29, 2023 · 13 comments
Open

上传图片后ddddocr.exe崩溃了 #3

netfun2000 opened this issue Nov 29, 2023 · 13 comments

Comments

@netfun2000
Copy link

在win11下启动 ddddocr --ocr然后在linux下执行

curl --location 'http://192.168.10.100:9898/ocr/file/json' --form "image=@./test.jpg"

Win11下的ddddocr.exe就自己关了。

curl --location 'http://192.168.10.100:9898/ping 返回正确结果pong

@86maid
Copy link
Owner

86maid commented Nov 29, 2023 via email

@netfun2000
Copy link
Author

ddddocr.exe 没有返回任何结果,就自己关掉了。

执行 curl --location 'http://192.168.10.100:9898/ocr/file/json' --form "image=@./test.jpg" 端则提示:

curl: (56) Recv failure: Connection reset by peer

此命令执行 公网上的 python版没有问题,可以正确返回识别码。

@86maid
Copy link
Owner

86maid commented Nov 29, 2023 via email

@netfun2000
Copy link
Author

或许是OS环境不一样吧。我再试试,谢谢。

@ReverseCRYstal
Copy link

或许是OS环境不一样吧。我再试试,谢谢。

也许是杀毒软件的锅

@netfun2000
Copy link
Author

杀毒软件用的是Win11自带的并且已停用。测试了python版的,在不同的Linux上,都没有问题。我再查查原因吧,谢谢。

@86maid
Copy link
Owner

86maid commented Nov 29, 2023 via email

@netfun2000
Copy link
Author

今天试了一下,用系统自己的 onnxruntime.dll(1.10.2201.2623) 替换掉软件自带的 onnxruntime.dll(1.8.21.701),使用 file 模式可以正常返回验证码。但是用b64模式,会提示:{"msg":"expected value at line 1 column 1","status":404}。
file和b64参数在linux api_server下能返回正常值。

@86maid
Copy link
Owner

86maid commented Dec 5, 2023 via email

@netfun2000
Copy link
Author

应该是base64解码错误。

@86maid
Copy link
Owner

86maid commented Dec 5, 2023 via email

@netfun2000
Copy link
Author

没有加双引号,如果加上双引号后,返回还是404错误,只是 msg 这些都是乱码了。

{"msg":"�޷����� base64 ������ json �ı�","status":404}

@86maid
Copy link
Owner

86maid commented Dec 5, 2023 via email

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