AirtestProject / AirtestProject/Airtest
使用360急速谷歌内核,调用 driver.airtest_test方法图片识别成功后,点击的位置偏下
- 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】
最后的识别结果仍然后问题
谷歌浏览器识别结果,运行结果如下

360急速识别结果

360急速运行结果如下

Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.