← Back to team overview

sikuli-driver team mailing list archive

[Bug 1607275] Re: find() in Finder

 

the actual JavaDocs do not show this feature:
http://nightly.sikuli.de/docs/index.html

This might have been available in a version < 1.1.0

Now you have to use a Pattern as with all find() methods.

** Changed in: sikuli
       Status: New => Confirmed

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.0.0

** Summary changed:

- find() in Finder
+ find(img, score) in Finder not there --- use find(new Pattern(img).similar(score))

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1607275

Title:
  find(img, score) in Finder not there --- use find(new
  Pattern(img).similar(score))

Status in Sikuli:
  Confirmed

Bug description:
  Contrary to explanation provided in JAVA DOC of Sikuli the find() function should take img and similarity arguments , but the Eclipse IDE gives error when similarity is provided stating that the function is buiilt only to take the image.
  Windows10
  64-bit 

  Procedure to produce the bug
  img1 = path to file saved as string in java ;
  img2 = path to file saved as string in java ;
  Finder f = Finder(img1)
  if (f.find(img2,0.8).hasNext())
      print("matach")
  else:
      print("did not match")

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1607275/+subscriptions


References