AirtestProject / AirtestProject/Airtest
用例执行的图像识别情况与Image Editor中的不一致
- Langage dominant
- Python
- Étoiles
- 9.6k
- Forks
- 1.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**描述问题bug**
通过IDE截图的图片 内容 在用例执行的时候始终匹配不到,confidence只有0.20+ ,但是我通过Image Editor去调试的时候,confidence能够达到0.98
```
Try finding: Template(logo.png)
resize: (594, 186)->(624, 195), resolution: (1296, 759)=>(1312, 798)
try match with MultiScaleTemplateMatchingPre
[MSTemplatePre] threshold=0.7, result={'result': (220, 551), 'rectangle': ((114.24800000000005, 518.624), (114.24800000000005, 584.624), (327.24800000000005, 584.624), (327.24800000000005, 518.624)), 'confidence': 0.2666640877723694}
find_best_result() run time is 0.74 s.
try match with TemplateMatching
[Template] threshold=0.7, result={'result': (465, 98), 'rectangle': ((153, 1), (153, 196), (777, 196), (777, 1)), 'confidence': 0.19524629414081573}
find_best_result() run time is 0.03 s.
try match with SURFMatching
find_best_result() run time is 0.15 s.
try match with BRISKMatching
find_best_result() run time is 0.21 s.
match result: None
resize: (594, 186)->(624, 195), resolution: (1296, 759)=>(1312, 798)
try match with MultiScaleTemplateMatchingPre
[MSTemplatePre] threshold=0.7, result={'result': (220, 551), 'rectangle': ((114.24800000000005, 518.624), (114.24800000000005, 584.624), (327.24800000000005, 584.624), (327.24800000000005, 518.624)), 'confidence': 0.2666640877723694}
find_best_result() run time is 0.73 s.
try match with TemplateMatching
[Template] threshold=0.7, result={'result': (465, 98), 'rectangle': ((153, 1), (153, 196), (777, 196), (777, 1)), 'confidence': 0.19524629414081573}
find_best_result() run time is 0.03 s.
try match with SURFMatching
find_best_result() run time is 0.17 s.
try match with BRISKMatching
find_best_result() run time is 0.22 s.
match result: None
resize: (594, 186)->(624, 195), resolution: (1296, 759)=>(1312, 798)
try match with MultiScaleTemplateMatchingPre
[MSTemplatePre] threshold=0.7, result={'result': (220, 551), 'rectangle': ((114.24800000000005, 518.624), (114.24800000000005, 584.624), (327.24800000000005, 584.624), (327.24800000000005, 518.624)), 'confidence': 0.2666640877723694}
find_best_result() run time is 0.74 s.
try match with TemplateMatching
[Template] threshold=0.7, result={'result': (465, 98), 'rectangle': ((153, 1), (153, 196), (777, 196), (777, 1)), 'confidence': 0.19524629414081573}
find_best_result() run time is 0.03 s.
try match with SURFMatching
find_best_result() run time is 0.15 s.
try match with BRISKMatching
find_best_result() run time is 0.21 s.
match result: None
```
**相关截图**

**预期效果**
用例执行的结果跟Image Editor里的结果一致
**python 版本:** `python3.7`
Airtest IDE 1.2.12
airtest = "==1.2.3"
**设备:**
- 系统: Windows 10
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.