← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #186051]: color recognizing problem

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sikuli is not very reliable in distinguishing plainly colored objects.

You have to look at the reported similarity in this case and try to use
this if possible to get better results.

For images of this kind you might generally use:

if exists(Pattern("colored-image.png").similar(0.99)): print "found"
else: print "not found"

Do not use Pattern.exact() or Pattern().similar(1.0) - seem to be buggy.

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