geirrastad / NotesToSelf

Misc scribblings and unfinished guides
0 stars 0 forks source link

Analyze engine fails during startup #2

Closed geirrastad closed 5 years ago

geirrastad commented 5 years ago

It fails with: OpenCV Error: Assertion failed (0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows) in Mat, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/matrix.cpp, line 483 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/matrix.cpp:483: error: (-215) 0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows in function Mat

Aborted (core dumped)

geirrastad commented 5 years ago

It fails because the provided camera settings has not been calculated correctly. When it starts the settings are initialized to default, with -1 for height and width, which translates to full image width and height. However this calculation should have been done BEFORE live images are sent to the stream. Must fix in collector

geirrastad commented 5 years ago

Fixed. Default settings are now correctly calculated.