← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #221291]: Pattern being found when using IDE match preview but not when running script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
If it is a bad shot (much background compared to the key visual
aspects), then the similarity score might be low (near 0.7) and on
script run it might be below 0.7 and fails.

optimize your shot and test it with
print find(img)

which shows you the score (good shots have scores above 0.9)

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