← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264487]: Help with making some Sikuli image recognition?

 

Question #264487 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264487

RaiMan proposed the following answer:
yep, this problem I already noticed:
the arrows do not seem to be pixel-identical in all cases 

In your sample that I used:
... and the 2 right arrows are slightly different (as you can see with the scores).

Since the check of possible arrows is rather fast, you might add some
variants:

# the arrows
aL = "aleft.png"
aR = "aright.png"
aU = "aup.png"
aU1 = "aup1.png"
aD = "adown.png"

# what should be typed in case
arrows = {aL : Key.LEFT, aR : Key.RIGHT, aU : Key.UP, aU1 : Key.UP, aD : Key.DOWN}

here I added an alternative image for the up arrow.
The rest stays the same (very flexible ;-)

To refine it, you need some viewer, that can magnify without aliasing
(showing the pixels as squares when enlarged).

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