[1.0.1] Finder: seems to only find one match

Asked by WeiHun Huang

I am using Sikulix 1.1.0 (2015-01-16_01:00nightly) on win 7
I try to implement the codes on example 2 of http://doc.sikuli.org/finder.html

f = Finder("stars.png")
img = "star.png"
f.find(img)
mm = []
while f.hasNext():
    mm.append(f.next())
print f.hasNext()
f.destroy()
print len(mm)
for m in mm:
    print m

The result is supposed to be 5 matches. However, I only get
1
M[30,32 23x23]@S(S(0)[0,0 1920x1080]) S:1.00 C:41,43 [0/0 msec]

Please help.
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
WeiHun Huang (weihun-huang) said :
#1

it's win 7 64-bit

Revision history for this message
Best RaiMan (raimund-hocke) said :
#2

ok, seems to be a bug.

Just tested:
- Finder.find() only finds one star.
- Region findAll() finds all 5 stars

I make it a bug, sorry.

Revision history for this message
WeiHun Huang (weihun-huang) said :
#3

Thanks RaiMan, that solved my question.