← Back to team overview

sikuli-driver team mailing list archive

[Bug 1833356] Re: findAll Fails

 

Have been fighting this for ages
findAll fails at similiar 0.80
I added this bit of code to try to debug
######################
        v_Pos = find(v_Image)
        print "v_Pos",v_Pos
        hover(Location(v_Pos.x,v_Pos.y))
        print "hovering",v_Pos.x,v_Pos.y
        popup("Found and hovering")
#######################
my results :-

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Try 0.85
Not Found
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Try 0.84

Not Found
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Try 0.83

Not Found
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Try 0.82

Not Found
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Try 0.81

v_Pos M[457,191 8x11]@S(S(0)[0,0 1366x768]) S:0.82 C:461,196 [80 msec]

hovering 457 191

[error] script [ FindFailed ] stopped with error in line 19
[error] FindFailed ( /home/jeff/SikuliScripts_Linux/Subs/Vikings/Close X big Region.png: (8x11) seen at (457, 191) with 0.82 in S(0)[0,0 1366x768] E:Y, T:3.0 )
[error] --- Traceback --- error source first
line: module ( function ) statement 
8: main ( Find_All_Close_X ) v_Result = findAll(v_Image) 
[error] --- Traceback --- end --------------

1.1.3(2018-06-07_14:48)/Linux4.15.0-48-generic/Java8(64)1.8.0_201-b09

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

Title:
  findAll Fails

Status in Sikuli:
  New

Bug description:
  Code
  def Find_All_Close_X(v_Image):
      if exists(v_Image,0.2):
          v_Pos = find(v_Image)
          print "v_Pos",v_Pos
          hover(Location(v_Pos.x,v_Pos.y))
          print "hovering",v_Pos.x,v_Pos.y
          popup("Found and hovering")
          v_Result = findAll(v_Image)    
      else:
          print "Not Found"
  v_Image_p = "/home/jeff/SikuliScripts_Linux/Subs/Vikings/Close X big Region.png"
  sx = 422 ; sy = 132 ; sw = 505 ; sh = 270
  setRect(sx,sy,sw,sh)
  g_Find_Matching = 0.85
  for i in range(20):
      print "^ " * 40 ,"Try", g_Find_Matching
      v_Image = Pattern(v_Image_p).similar(g_Find_Matching)

      Find_All_Close_X(v_Image)
      g_Find_Matching = g_Find_Matching - 0.01

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


References