← Back to team overview

sikuli-driver team mailing list archive

[Bug 1198108] Re: [1.0] find and findAll don't return the same score

 

** Changed in: sikuli
    Milestone: 1.1.0 => 1.2.0

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

Title:
  [1.0] find and findAll don't return the same score

Status in Sikuli:
  In Progress

Bug description:
  My point is that the score return by these function are not the same.
  This means that the function "find" and "exists" are able to find an image that the function "findAll" will not find.

  ---------------------------------------------------------------------------------------------------------------------
  For example, the code :

  cs = "img.png"

  e = exists(cs)
  print "exists:", e

  f = find(cs)
  print "find:", f

  lfa = findAll(cs)
  for fa in lfa:
      print "findAll:", fa

  return the following log:
  exists: M[834,767 65x10]@S(0)[0,0 1920x1200] S:0,79 Center:866,772
  find: M[834,767 65x10]@S(0)[0,0 1920x1200] S:0,79 Center:866,772
  [error] script [ test_Skl ] stopped with error in line 9
  [error] FindFailed ( can not find img.png on the screen. )
  ---------------------------------------------------------------------------------------------------------------------
  To explain the above example :
  I search three times the same image in the same background.
  The functions exists are all found the same result with a score of 0.79.
  But the "findAll" function has found no images with a similarity score higher than 0.7.

  I use the release 1.0.0 of Sikuli on Windows XP (32).

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


References