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 无法识别 GoogleMLKitOcrResult(level=0, confidence=-1.0, text=, language=null, bounds=null, children=[]) #808

Closed
DreamerLS1994 opened this issue Jan 21, 2024 · 4 comments

Comments

@DreamerLS1994
Copy link

  1. Autox.js 版本:629
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases
  3. Android 版本:Android 10
  4. Android 机型:小米10
  5. Android 系统类别:MIUI
  6. VSCODE Autox.js 扩展版本(可选,如果是连接电脑的问题需要填):
  7. 问题描述:
  8. 报错日志(可选):
  9. 屏幕截图(可选):
    官网例子,一直提示
    GoogleMLKitOcrResult(level=0, confidence=-1.0, text=, language=null, bounds=null, children=[])
    我记得前几天可以用的啊?是我的问题吗?
@DreamerLS1994
Copy link
Author

6.5.6 没有问题 6.5.7 出现的问题。

@LYS86
Copy link

LYS86 commented Feb 17, 2024

#792 我调了ML Kit的版本,我这边可以识别,
机型

应用版本名: 6.5.8
安卓发行版本: 13
安卓 SDK 版本: 33
设备品牌: Xiaomi
设备型号: Mi 10
设备产品名称: umi

尝试提高文字对比度看看是否能识别,不行就回滚版本

let canvas = new Canvas(500, 500);
let paint = new Paint();
paint.setTextSize(100);
paint.setColor(android.graphics.Color.pack(colors.parseColor("#FF963200")));
canvas.drawText("测试文字", 100, 100, paint);
img = canvas.toImage()
//images.save(img, './2.png')
let text = gmlkit.ocr(img, 'zh')
log(text)

@claviering
Copy link

6.5.8 也出现这个问题

Copy link

此lssue由于长期未活动已被自动关闭,如问题任然存在,请重新打开lssue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants