← Back to team overview

sikuli-driver team mailing list archive

[Bug 681781] Re: [request] Save original and last known location of image to be used in the next script execution (performance!)

 

** Changed in: sikuli
   Importance: Medium => Wishlist

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

Title:
  [request] Save original and last known location of image to be used in
  the next script execution (performance!)

Status in Sikuli:
  In Progress

Bug description:
  1.1.0: partly implemented with new Image class (last match location is stored and checked first at subsequent searches)
  1.2: make it persistent including the information where it was captured
  -------------------------------------------------------------------
  In order to improve image finding speed, Sikuli could save together with an image some meta information about that image.
  the meta information could have the following, for a start:
  - last seen coordinates
  - original coordinates

  So whenever a new image is created, Sikuli would populate these fields.
  whenever this image is called by a script, Sikuli would update these fields.

  The idea is that whenever the script runs, it can start to look the image on the "last seen coordinates", then on the "original coordinates" and if both fail, the entire screen as it normally does.
  I believe this specific Find of the image (using these fields) can be done with a small timing (1s or 2s) so that the script can start searching the entire screen with not much delay.

  Best case scenario: Most of the times, a specific image appears on the
  same location as the last time or very close to it (the last know
  coordinates can be a bit bigger area than the actual image occupies to
  allow some variation).

  Worst case scenario: the image appears always in differernt places of
  the screen, thus making Sikuli loose those one or two seconds defined
  above.

  Ir order to get rid of the worst case scenario, Sikuli IDE would allow
  the user to define a "always search the entire screen" or
  "contextualized search based on last known location" - or whatever
  better names for this :)

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