[request] Transparent pixels should be ignored in matching process
Bug #673995 reported by
Vladimir Petrov
This bug affects 17 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
High
|
RaiMan |
Bug Description
OpenCV 3+ now seems to have a matchTemplate() with a masking feature.
To be tested as candidate for an implementation in version 2.
-------
I'm using Sikuli 0.10.2 on a 32-bit Windows XP system. I just noticed that if you are using a png file, containing transparent pixels as a pattern for image recognition, these pixels are not skipped during the matching process, thus resulting in a wrong match if you have some kind of background under the transparent part of the image. I think this behavior is incorrect - and Sikuli could be even more powerful if able to skip some pixels from the pattern.
summary: |
- Transparent pixels should be skipped in image recognition + [Request] Transparent pixels should be ignored in matching process |
Changed in sikuli: | |
importance: | Undecided → Wishlist |
summary: |
- [Request] Transparent pixels should be ignored in matching process + [request] Transparent pixels should be ignored in matching process |
Changed in sikuli: | |
status: | New → In Progress |
assignee: | nobody → RaiMan (raimund-hocke) |
tags: |
added: fkt-region removed: background transparency transparent |
Changed in sikuli: | |
milestone: | none → 1.2.0 |
importance: | Wishlist → Medium |
description: | updated |
Changed in sikuli: | |
status: | In Progress → Fix Released |
milestone: | 2.0.0 → 1.1.4 |
milestone: | 1.1.4 → 2.0.0 |
To post a comment you must log in.
I would like to make the opposite request, that the current behavior remains. Editing the captured PNGs to contain transparent regions is the easiest way to interact with GUI elements that change according to time or date.
For example, a calendar popup is launched by clicking on the current date. It's not always feasible to match nearby landmarks and use offsets to get to where the current date is displayed. Removing the date section of the image and making it transparent will cause it to match _any_ date.