上传图片后ddddocr.exe崩溃了
netfun2000 opened this issue · comments
在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
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版没有问题,可以正确返回识别码。
或许是OS环境不一样吧。我再试试,谢谢。
或许是OS环境不一样吧。我再试试,谢谢。
也许是杀毒软件的锅
杀毒软件用的是Win11自带的并且已停用。测试了python版的,在不同的Linux上,都没有问题。我再查查原因吧,谢谢。
今天试了一下,用系统自己的 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下能返回正常值。
应该是base64解码错误。
没有加双引号,如果加上双引号后,返回还是404错误,只是 msg 这些都是乱码了。
{"msg":"������ base64 ������ json �ı�","status":404}