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

HTTP BASE64解析失败 #472

Closed
1 task done
lingyong2023 opened this issue Apr 13, 2024 · 7 comments
Closed
1 task done

HTTP BASE64解析失败 #472

lingyong2023 opened this issue Apr 13, 2024 · 7 comments

Comments

@lingyong2023
Copy link

Issues

  • I have browsed through the Issues. 我已浏览过Issues,确定没有重复提问。

Umi-OCR version 程序版本

2.1.0

Windows version 系统版本

W10

OCR plugins Used 使用的OCR插件

No response

Reproduction steps 复现步骤

我们的base64 有什么特别的格式吗
安卓调用的 报错 code = 300 Base64 decode failed.
直接调用paddleHub 和 rapid Base64数据都对

Problem screenshots or related files (optional) 问题截图或相关文件(可选)

No response

@hiroi-sora
Copy link
Owner

hiroi-sora commented Apr 13, 2024

没有特殊格式,只是无需data:image/png;base64的前缀,直接放Base64本体。

测试样例:

iVBORw0KGgoAAAANSUhEUgAAAC4AAAAXCAIAAAD7ruoFAAAACXBIWXMAABnWAAAZ1gEY0crtAAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AAAHjSURBVEiJ7ZYrcsMwEEBXnR7FLuj0BPIJHJOi0DAZ2qSsMCxEgjYrDQqJdALrBJ2ASndRgeNI8ledutOCLrLl1e7T/mRkjIG/IXe/DWBldRTNEoQSpgNURe5puiiaJehrMuJSXSTgbaby0A1WzLrCCQCmyn0FwoN0V06QONWAt1nUxfnjHYA8p65GjhDKxcjedVH6JOejBPwYh21eE0Wzfe0tqIsEkGXcVcpoMH4CRZ+P0lsQp/pWJ4ripf1XFDFe8GHSHlYcSo9Es31t60RdFlN1RUmrma5oTzTVB8ZUaeeYEC9GmL6kNkDw9BANAQYo3xTNdqUkvHq+rYhDKW0Bj3RSEIpmyWyBaZaMTCrCK+tJ5Jsa07fs3E7esE66HzralRLgJKp0/BD6fJRSxvmDsb6joqkcFXGqMVVFFEHDL2gTxwCAaTabnkFUWhDCHTd9iYrGcAL1ZnqIp5Vpiqh7bCfua7FA4qN0INMcN1+cgCzj+UFxtbmvwdZvGIrI41JiqhZBWhhF8WxorkYPpQwJiWYJeA3rXE4hzcwJ+B96F9zCFHC0FcVegghvFul7oeEE8PvHeJqC0w0AUbbFIT8JnEwGbPKcS2OxU3HMTqD0r4wgEIuiKJ7i4MS16+og8/+bPZRPLa+6Ld2DSzcAAAAASUVORK5CYII=

如果上述样例可以跑,你自己的base64不行,可以将你的例子发上来给我看看。(写进文本文件,打个zip发上来)

@lingyong2023
Copy link
Author

Uploading data.zip…

@lingyong2023
Copy link
Author

上传了 您给把把脉

@hiroi-sora
Copy link
Owner

你没上传完哦。文件拖进浏览器后,要等待链接刷出来,才点Comment。

@lingyong2023
Copy link
Author

data.zip

@lingyong2023
Copy link
Author

对不起 急一下 忘记了

@qwedc001
Copy link
Contributor

你好,点进去以后回传为404 Not Found,可能是上传的时候还是有点问题

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