← Back to team overview

sikuli-driver team mailing list archive

[Question #188555]: OpenCV Error on starting event observer

 

New question #188555 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188555

This happens when I have registered, triggered and stopped an onChange event observer several times.  (I'm using the updated sikuli-script.jar you (RaiMan) sent me last week (I'm using the java api)).

[RaiMan] observer started
[log] CLICK on (227,10)
targetChanged called
stopping observer
stopped observer
[log] highlight Match[186,23 257x215 score=-1.00 target=center] for 1.0 secs
[RaiMan] observer started
targetChanged called
stopping observer
stopped observer
[log] highlight Match[195,24 239x24 score=-1.00 target=center] for 1.0 secs
[log] highlight Match[205,4 44x12 score=1.00 target=center] for 1.0 secs
[log] CLICK on (227,10)
about to register observer
[log] highlight Match[186,48 239x191 score=-1.00 target=center] for 1.0 secs
registered observer
[RaiMan] observer started
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /Users/vgod/Downloads/OpenCV-2.2.0/modules/core/src/matrix.cpp, line 307
terminate called after throwing an instance of 'cv::Exception'
  what():  /Users/vgod/Downloads/OpenCV-2.2.0/modules/core/src/matrix.cpp:307: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat


Process finished with exit code 134

Immediately after registering the onChange event observer,  I do a region.mousemove and then sleep.  When I run the script, It looks as though the mouse starts to move, then I get the OpenCV error.


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.