← Back to team overview

sikuli-driver team mailing list archive

[Bug 780937] Re: X-1.0rc2: exact() information is lost in GUI on reopening --- workaround

 

No, specifying similar(some-value) only sets the value, that is taken
internally to decide, wether something was found or not in comparison
with the match's score.

So specifying similar(x) with x > 0.9 is always dangerous and only
useable if you are sure, that the match's score will be greater than 0.9
in all cases.

specifying 0.99 or 1.0 even makes the search slower (about 25% longer),
because internally an additional comparison step takes place.

Specifying similar(x) usually is only needed if you have to assure that
a specific image should be found in cases, where otherwise another image
with a lower score would be found first.

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

Title:
  X-1.0rc2: exact() information is lost in GUI on reopening ---
  workaround

Status in Sikuli:
  New

Bug description:
  **** workaround:
  use similar(0.99) instead
  ----------------------------------------------

  When a pattern is defined as exact match using 1.0 similarity in GUI, the image gets "1.0" marker and the .py file contains the following source:
    img = Pattern("img.png").exact()

  However, if you save and reopen Sikuli, the "1.0" marker is lost, and
  click on image resets similarity slider to a value of 0.7. This
  creates big trouble when debugging, because engine still matches the
  picture as exact() match and if PS doesn't have exact similarity,
  Matching Preview will show that there is no match until you move
  slider.

  Vista 32.


References