← Back to team overview

sikuli-driver team mailing list archive

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

 

** Summary changed:

- find and findAll don't return the same score
+ [1.0] find and findAll don't return the same score

** Description changed:

- Hello,
- 
- Don't tell me the "find" function return only one match while the "findAll" function return a list of match. I know that.
  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 : 
+ 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
+     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 have already reported in the Question #231864, but now I think it's an anormal issue.
  I'm not very good in english. So if you have any problem or question, just tell me.
  I will answer as quickly as I can.
  
  I use the release 1.0.0 of Sikuli on Windows XP (32).
  
  Regards.

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

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

** Tags added: fkt-find

** Description changed:

  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 have already reported in the Question #231864, but now I think it's an anormal issue.
- I'm not very good in english. So if you have any problem or question, just tell me.
- I will answer as quickly as I can.
- 
  I use the release 1.0.0 of Sikuli on Windows XP (32).
- 
- Regards.

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