← Back to team overview

sikuli-driver team mailing list archive

[Bug 880861] Re: [request] findAll() should only return the most probable matches

 

Result of same code run wih Sikuli 0.10.2:
0 (129,788) 0.948552966118
1 (129,554) 0.948552310467
2 (129,320) 0.948552310467
3 (129,374) 0.948552310467
4 (129,662) 0.948552310467
5 (129,716) 0.948552966118
6 (129,770) 0.948552310467
7 (129,356) 0.948552310467
8 (129,392) 0.948552310467
9 (129,644) 0.948552310467
10 (129,698) 0.948552310467
11 (129,338) 0.948552966118
12 (129,572) 0.948552310467

-> matches what I'd expected as result.

This is why I'd consider this a regression bug.

Regards, Andreas

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

Title:
  [request] findAll() should only return the most probable matches

Status in Sikuli:
  New

Bug description:
  --- request (based on the primary bug situation)

  findAll(): "most probable" means, that only those matches are
  returned, whose score differ only slightly from that of the best match
  (e.g. max 0.5 or even less). This surely is the expectation of most
  people, when using findAll().

  Additionally it might make sense, to implement a findAny(), that
  returns ALL matches having a score above the given similarity, because
  this might be the expected result in some situations, when using
  findAll() in its current shape.

  -------------------------------------------------

  1. Sikuli 1.0 rc3
  2. Windows XP SP3 32-bit
  3. Enclosed code loops over all "Apply" boxes. Once apply has been clicked it wait for a confirmation box to appear, confirms, waits for the confirmation box to disappear. The final match does not point to the bitmap.
  4. Required bitmaps attached.

  # setFindFailedResponse(PROMPT)
  setROI(Screen(0))

  applies = findAll("Apply.png")

  for apply in applies:
      click(apply)
      confirm="Doyoureallyw-1.png"
      wait(confirm)
      click(Pattern("YesNo.png").targetOffset(-31,-1))
      waitVanish(confirm)

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


References