← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #657922]: Is there a way to get the highest match score of a failed Region.exists() call?

 

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

Alex Lunyov proposed the following answer:
You could use method getScore() for a match result in case it is not
None.

So, the following code will show you a digit between 0 and 1, where 0
corresponds to "no match" result and 1 to exactly match result:

res = some_reg.exists(some_img)
try:
     print res.getScore()
except AttributeError:
     print 0.

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