← Back to team overview

sikuli-driver team mailing list archive

[Bug 612434] Re: 0.10.2 find doesn't return the best match

 

fixed in Sikuli X

** Changed in: sikuli
       Status: Fix Committed => Fix Released

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

Title:
  0.10.2 find doesn't return the best match

Status in Sikuli:
  Fix Released

Bug description:
  I was trying to find a magnifying glass picture with a minus sign. On the screen there is a magnifying glass with a plus sign and another one with a minus sign, the correct one matches with a 0.96 score the incorrect one matches with a 0.91 score.
  find() sometimes found the correct one and sometimes not.

  In LookaheadTemplateMatcher:next() when something matches >0.9 it
  simply returns the first one found not the best one.  If I comment
  this out, it finds the correct one, but I guess it may slow things
  down.

  I can fix this by using findAll & sorting by score instead, just
  wanted to let you guys know.

  Attached are the pictures I was testing with.