← Back to team overview

sikuli-driver team mailing list archive

[Bug 1211462] Re: Image similarity value changes randomly

 

I do not think, that this is a bug in Sikuli, it might be an
inconvenience though.

If the same script during another run report lower similarity values
than before, then the search operation has found, that it is so.

The reason in most cases are probe images, that contain too much
background or surrounding around the key visual aspects of the target.
This is a current weakness of Sikuli: it does not support the user, to
make optimal screenshots and does not ignore those unwanted parts of an
image.

Already slight changes of these unwanted image parts might even lead to
FindFailed situations.

Especially with Windows, we have the situation, that many aspects lead
to different renderings on the pixel level or slightly different
backgrounds especially on different machines, that are not obvious for
the user looking at the screen, since they can only be seen on the pixel
level.

When planning to run scripts on different machines or even only
different browsers, then you should implement appropriate checks in your
scripts, and be prepared, that these things might happen.

I have on the list, to enhance the Preview feature of the IDE, to allow
to optimize a screenshot.

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

Title:
  Image similarity value changes randomly

Status in Sikuli:
  Opinion

Bug description:
  When images are first captured, they have a similarity value of 1.0,
  and match exactly. However, when a script is run later, the similarity
  value for images degrades, typically to a value of ~.6, despite the
  exact same screen being visible. It occurs seemingly at random;
  typically it takes several days before an image will no longer be
  recognized, but it can occur faster as well. Because of the random
  nature of the error, it is difficult to reproduce intentionally, but
  seems to occur very frequently when scripts are tested at a later date
  or on a different client machine.

  Sikuli: 1.0.0
  OS: Windows 7 32-bit

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


References