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

使用360急速谷歌内核,调用 driver.airtest_test方法图片识别成功后,点击的位置偏下 #1184

Open
SJST opened this issue Dec 23, 2023 · 0 comments

Comments

@SJST
Copy link

SJST commented Dec 23, 2023

Describe the bug
相同一段代码,使用 chrome浏览器 图片识别成功,代码继续运行
指定为360浏览器后,图像识别成功,但是点击位置偏下


To Reproduce

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

python version: python3.10.7

airtest version: 1.2.16

You can get airtest version via pip freeze command.

Smartphone (please complete the following information):
截图使用的 driver.airtest_touch方法

  • more information if have

Additional context
Add any other context about the problem here.
一开始以为是调用webdriver的screenshot方法截图像素有问题【跟过代码发现在调用全屏截图后,同样是1920*1080分辨率的页面,360急速浏览器在截图压缩后,得到的分辨率高度是916,谷歌得到的分辨率是920】
于是通过cv2 将360急速浏览器的截图 temp.jpg,提升为920px 通过转写base64将图片格式,深度与chrome截图保持一致【1920,920,32bit PNG】
最后的识别结果仍然后问题
谷歌浏览器识别结果,运行结果如下
截图谷歌识别结果
360急速识别结果
360急速识别结果
360急速运行结果如下
360急速运行结果

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

1 participant