AirtestProject / AirtestProject/Airtest
无法正常识别Cocos-lua打出来的windows程序中的图片
- Lingua principale
- Python
- Stelle
- 9.6k
- Fork
- 1.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
无法正常找到图片识别,总是提示找不到图片,重启一下或者过一会又能跑几步双击查看原图过一会就运行时截图全是同一张,
(在这里粘贴traceback或其他报错信息)
```Traceback (most recent call last):
File "airtest\cli\runner.py", line 65, in runTest
File "site-packages\six.py", line 693, in reraise
File "airtest\cli\runner.py", line 61, in runTest
File "D:\AirtestProject\TestSmp.air\TestSmp.py", line 10, in
touch(Template(r"tpl1555933208343.png", rgb=True, record_pos=(1.692, 0.377), resolution=(726, 604)))
File "airtest\utils\logwraper.py", line 72, in wrapper
File "airtest\core\api.py", line 256, in touch
File "airtest\utils\logwraper.py", line 72, in wrapper
File "airtest\core\cv.py", line 77, in loop_find
airtest.core.error.TargetNotFoundError: 'Picture Template(D:\\AirtestProject\\TestSmp.air\\tpl1555933208343.png) not found in screen'
----------------------------------------------------------------------
Ran 1 test in 20.371s
FAILED (errors=1)
[Finished]


**相关截图**
(贴出遇到问题时的截图内容,如果有的话)
(在AirtestIDE里产生的图像和设备相关的问题,请贴一些AirtestIDE控制台黑窗口相关报错信息)
**复现步骤**
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Cocos-lua打出的windws平台游戏,图像识别的准确率低的令人发指。。。。
**预期效果**
怎么能改善一下,
**python 版本:** `python3`
**airtest IDE版本:** `1.2.1`
**设备:**
Windows7平台
GTS480独显+英特尔集显
-
**其他相关环境信息**
(其他运行环境,在安卓正常,只有windows异常。)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.