OpenCV Error on starting event observer
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/
terminate called after throwing an instance of 'cv::Exception'
what(): /Users/
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.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- RaiMan Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Terence Cooper for more information if necessary.