← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #662286]: same image different colour

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
comment #5 refers to your comment #4 which in turn refers to comment #3
!!!

all taken together:

found = window.next();
double score = found.getScore();
if (score < 0.9978563) // would mean fail

You have to find out, what the  0.9978563-value in your case must be in
what situation.

If the different colors are background colors towards the edges, then
make your images smaller, to concentrate on non-background.

see:
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen
which applies to your situation too.

You still do not fully understand, how SikuliX find feature works.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.