New question #200247 on Sikuli:
https://answers.launchpad.net/sikuli/+question/200247

Hello,

Sorry if this has been answered before, but I've read through most of the 
Sikuli question base and couldn't find anything.

I came across this, which sounded like my problem: 
https://bugs.launchpad.net/sikuli/+bug/808575

But that bug has been fixed, the 1 pixel image I am using is not black, and I 
am using Sikuli X-1.0rx3 (r905), so it must be something else.

On my screen I have three single pixels of a specific color at various 
locations, and as an example, I have taken the code from:
http://sikuli.org/docx/match.html#iterating-over-matches-after-findall

# ---------- Code ---------- #

Settings.minSimilarity = 1

findAll("redPixel.PNG")

matchList = list(getLastMatches())

print str(matchList)

# -------------------------- #

The printed output from that list looks like this:

[Match[833,59 1x1 score=1.00 target=center], Match[833,59 1x1 score=1.00 
target=center], Match[833,59 1x1 score=1.00 target=center], Match[833,59 1x1 
score=1.00 target=center]... etc

As you can see, the matches are all duplicates. The default findAll() limit was 
hit, and that duplicate match is contained within the list 100 times.

I expected that the output should be a list with three matches at different 
locations, as there are only three red pixels on my screen.

I have tried using a Finder object for this also, which yielded the same result.

Any ideas, anybody? RaiMan perhaps...? :-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to