Unable to verify that a region is blank(has nothing on it)

Asked by Anshu

I want to verify a blank area with the blank baseline screen shot that i took to find/match.
so my code is something like
if exists(Pattern("blank.png").exact()):
   print "pass"
else:
  print "fail"

Issue is that Whether the area is blank or not - in both cases it returns pass.
Even if i have something in that area - and i do a screen match preview - it shows it all red - at 100% also - means it matches the contents of the area with the blank screen shot image.

Is there a way to verify that ?
(Using Sikuli X on XP)

Thanks
Anshu

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

**** This is a bug

Revision history for this message
Anshu (anshu-ca) said :
#2

HI RaiMan,
Just wondering if there are plans to fix this one.

Thanks
Anshu

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Seems not to be fixed yet. We have to wait for the developers.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

You should post yourself as affected in the related bug.