I'm running Sikulix v2.0.5 on a linux machine (ubuntu 22.04 LTS). In order to ingnore background I try to use template images with transparent areas. But as soon as I use transparency Sikulix behave strage in finding the correct matches on screen. with a normal (70% percent) comparison it finds 'match' that have nothing to do with the template. Only a 99% percent comparison finds the correct areas, but as so the match must fit 99% percent. So slightly different pictures compared to the non transparent part of the template can't be found.
What I tried:
If I have i.e. a template image of a folder on my desktop and I use it with Sikulix in a normal way by just using its filename "Image.png" (70% comparison) sikulix finds only that exact area where I took the template from. So it reacts as expected like the screenshot of dialog 'pattern properties' shows the correct area in red.
When I edit the template image in order to make the background transparent I gets the following template image with transparency. If I use this image as template, sikulix finds areas that have nothing to do with the template image as this screenshot of the dialog 'pattern properties' shows.
Only if one uses a 99% comparison the right areas are found as this screenshot shows.
But as one can see, only folders which look exactly like the templates are found. The first one in the upper left corner ist not found due to its slightly different picture.
So what I would expect is, that if I use i.e. a 70% comparison in conjunction with transparency, sikulix should compare that 70% of the NON TRANSPARENT part of the template should fit for a match, thus ignoring a background but find similar pictures.
Is Sikulix the right destination for placing this question or should I switch over to OpenCV to ask this question.
Regards
I made two more templates differing in only one pixel. The first one with lower right pixel black and the second with lower right pixel transparent. The first one leads with the 70% accuracy to exactly one region on the desktop. The second template leads to many regions that are recognized erroneously.