AirtestProject / AirtestProject/Airtest

用例执行的图像识别情况与Image Editor中的不一致

Đang mở
#1,008 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
9.6k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**描述问题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
```

**相关截图**
![POPO20211224-135330](https://user-images.githubusercontent.com/3176589/147322514-da130899-3471-4027-84e6-75dfadc10fb8.jpg)

**预期效果**
用例执行的结果跟Image Editor里的结果一致

**python 版本:** `python3.7`

Airtest IDE 1.2.12
airtest = "==1.2.3"

**设备:**
- 系统: Windows 10

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.