查找图像中文本的坐标

发布于 2025-01-18 17:26:17 字数 287 浏览 1 评论 0原文

我正在尝试开发一个Android自动化项目。因此,我想在Android电话屏幕中获得一些文本的位置。

我的电话屏幕。 我试图动态地获取搜索框的位置,以使用ADB Shell单击框。我可以找到文本“搜索或键入Web地址”的坐标?我该怎么做?

我已经尝试了tesseract.js。那是返回提取的文本

对不起,英语不好

I am trying to develop an android automation project. So i wanted to get position of some text in android phone screen.

My phone screen.
I trying to get position of the search box dynamically to click on the box using adb shell. Can i find the coordinates of the text "Search or type web address"? How can i do it?

I already tried tesseract.js . That is returning the extracted text only

sorry for bad English

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文