← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #237496]: How to set Finder similarity

 

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

    Status: Answered => Open

Chengpu Wang is still having a problem:
No, my script runs fine. No I DO NOT want exact match.

Here is the API spec at http://doc.sikuli.org/finder.html:
class Finder
  find(path-to-imagefile[, similarity])
  Find a given image within a source image previously specified in the constructor of the finder object.
  Parameters:	
  path-to-imagefile – the target image to search for
  similarity – the minimum similarity a match should have. If omitted, the default is used.

I changed to what you have suggested:

finder.find( Pattern("target.png").similar(0.61) )
if not finder.hasNext():
    print( 'Can not find the target image by Finder' )

The result is the same:
Can not find the target image by Finder

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