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

Bug #1607275 reported by Kanwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Confirmed
Undecided
RaiMan

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")

Revision history for this message
RaiMan (raimund-hocke) wrote :

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
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.0.0
summary: - find() in Finder
+ find(img, score) in Finder not there --- use find(new
+ Pattern(img).similar(score))
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.