X 1.0rc1 Observe() not working (0.10.2: on Windows)
Bug #604514 reported by
RaiMan
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
High
|
Unassigned |
Bug Description
Win7-32, 0.10.1
onAppear(
the observation loops infinite, though the image gets visible and would be matched by a find()
onVanish(
the observation loop finishes at once, though the image is still visible
the test script:
def myH(e):
popup("Hello")
stopObserver()
imgObs =
if not exists(imgObs, 0):
onAppear(imgObs, myH)
else:
onVanish(imgObs, myH)
popup("Start")
observe()
popup("End")
the script behavior is controlled, by either hide or unhide the image before it is run and then unhide/hide it respectively, by dragging around a window on the desktop.
All this works perfectly on Mac 10.6
tags: | added: observe windows |
description: | updated |
Changed in sikuli: | |
milestone: | none → x1.0-rc1 |
Changed in sikuli: | |
milestone: | x1.0-rc1 → x1.0-rc2 |
summary: |
- Observe() not working on Windows + X 1.0rc1 Observe() not working (0.10.2: on Windows) |
Changed in sikuli: | |
importance: | Undecided → High |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have a problem with observe too but it's unrelated to windows. ger::update fixed it for me...
Adding this line at the top of SikuliEventMana
cvCvtColor( screen_ image, screen_image, CV_RGB2BGR);
This line is in the FinderProxy: :createFinder function which is used by find() but not observe()
You can see see that the image that's passed to this function via observe() is faulty by adding cvSaveImage( "/tmp/t. png", screen_image); at the start of the update() function.
The cool thing about this is that I've noticed that it still matched the image with all the wrong colors but it just gave it a lower score.
Maybe you're using a different image in windows?