AirtestProject / AirtestProject/Airtest

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

Aberta
#1,184 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
9.6k
Forks
1.5k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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】
最后的识别结果仍然后问题
谷歌浏览器识别结果,运行结果如下
![截图谷歌识别结果](https://github.com/AirtestProject/Airtest/assets/51390274/a1176c67-7ede-47af-bb1b-e249949ea69c)
360急速识别结果
![360急速识别结果](https://github.com/AirtestProject/Airtest/assets/51390274/f6885695-e510-4687-8cc8-fd3df4af444b)
360急速运行结果如下
![360急速运行结果](https://github.com/AirtestProject/Airtest/assets/51390274/d61d21d9-6372-4581-9426-864e53398bcd)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.