← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #661313]: region.find(image) question/issue

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1:
instead of 
 region.find(image)

you should use
 region.exists(image)

in if/elif/while ... since it returns True or False instead of throwing
a FindFailed exception

--2:
 region.find(image)
is successful if the match score is >0.7 (standard behavior).
Be sure you have understood the match score concept, that is implemented with class Pattern.
In your case the image might have changed a little, but still matches with a score > 0.7

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