sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06198
[Bug 877450] [NEW] pattern.exact() fails even when a perfect match exists
Public bug reported:
I am currently using the java Sikuli to verify generated images on the
screen, and I need to verify that they are a 100% match (for regression
testing). I was using the following code the verify:
Pattern exactMatch = new pattern(pathToMasterImage).exact();
boolean result = screen.exists(exactMatch, someTimeout) != null;
however, on some images, this would fail. I captured screenshots on the
failure and compare the pixels and they were an exact match. I also
called a search for the same image immediately after using .similar()
and gave it a minimum of a 0% match, which returned a match object with
a score of 1.0, so there did exist a 100% match on the screen, but the
search for the pattern with a .exact() setting seemed to still fail.
Currently running the java portion of sikuli Sikuli-X-1.0rc3 (r905) 32
bit on a win64 system (running 32bit java though) and windows7. Repro
for this bug is difficult, but I ran it over a series of images, and
roughly 1 in 6 seemed to fail, albeit it was different images that
failed (on the same set of images) every time I ran it.
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/877450
Title:
pattern.exact() fails even when a perfect match exists
Status in Sikuli:
New
Bug description:
I am currently using the java Sikuli to verify generated images on the
screen, and I need to verify that they are a 100% match (for
regression testing). I was using the following code the verify:
Pattern exactMatch = new pattern(pathToMasterImage).exact();
boolean result = screen.exists(exactMatch, someTimeout) != null;
however, on some images, this would fail. I captured screenshots on
the failure and compare the pixels and they were an exact match. I
also called a search for the same image immediately after using
.similar() and gave it a minimum of a 0% match, which returned a match
object with a score of 1.0, so there did exist a 100% match on the
screen, but the search for the pattern with a .exact() setting seemed
to still fail.
Currently running the java portion of sikuli Sikuli-X-1.0rc3 (r905) 32
bit on a win64 system (running 32bit java though) and windows7. Repro
for this bug is difficult, but I ran it over a series of images, and
roughly 1 in 6 seemed to fail, albeit it was different images that
failed (on the same set of images) every time I ran it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/877450/+subscriptions
Follow ups
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: Paul Chambre, 2018-09-19
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2013-08-14
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2013-02-21
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2012-11-02
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2012-11-02
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2012-03-05
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: David-Emmanuel Divernois, 2012-03-05
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: David-Emmanuel Divernois, 2012-03-05
-
[Bug 877450] Re: X-1.0rc3: pattern.exact() fails even when a perfect match exists --- workaround
From: RaiMan, 2011-10-29
-
[Bug 877450] Re: pattern.exact() fails even when a perfect match exists
From: RaiMan, 2011-10-18
-
[Bug 877450] [NEW] pattern.exact() fails even when a perfect match exists
From: Jordan Beland, 2011-10-18
References