linuxdeepin / youqu

YouQu, a simple and powerful autotest framework.
GNU General Public License v2.0
55 stars 17 forks source link

针对OCR识别存在多组结果,通过坐标范围条件筛选结果 #80

Closed Marszzz1116 closed 3 months ago

Marszzz1116 commented 3 months ago

场景:使用OCR关键词操作页面时,关键词不唯一,使用OCR识别后会返回多个坐标。 使用:如果该关键词在UI中出现的位置相对固定,那则可以通过坐标范围筛选出我们想要的那个位置,而且范围不用那么精准,所以 UI 变动不是太大,依然可以兼容,同时比图像识别更加方便。

实例:例如下图我需要点击左侧列表的关键词 /dev/nvme0n1 ,传入一个 X 坐标范围即可,若 X 坐标相近,还可以加入 Y 坐标进行辅助,提升精准度。

截图_选择区域_20240605165112

deepin-ci-robot commented 3 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Marszzz1116

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[debian/deepin/OWNERS](https://github.com/linuxdeepin/youqu/blob/master/debian/deepin/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
deepin-ci-robot commented 3 months ago

Hi @Marszzz1116. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
github-actions[bot] commented 3 months ago

CLA Assistant Lite bot:
提交邮箱中包含我们的合作伙伴,但您似乎并非合作伙伴的成员或对接人,请联系相关对接人将您添加至组织之中,或由其重新发起 Pull Request。
The commit email domain belongs to one of our partners, but it seems you are not yet a member of the current organization, please contact the contact person to add you to the organization or let them submit the Pull Request.

huanghaizhen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request