Astra_initialize and astra::initialize throw error: 'cv::Exception'

Hello, I already installed and used the Astra SDK previously, with OpenCV 2.4.9. Everything was working fine. Now I had to reinstall OpenCV and use version 3.4.6.

Unfortunately, after I switched the version, I am unable to use the Astra SDK. Neither calling astra_initialize nor astra::initialize is working. Instead, I get one of three errors. All errors start with a 'cv::Exception'

terminate called after throwing an instance of 'cv::Exception'

But different internal OpenCV errors:

1

what():  OpenCV(3.4.6) /path/to/opencv/modules/core/src/matrix_wrap.cpp:96: 
error: (-215:Assertion failed) 0 <= i && i < sz.height in function 'getMat_'

2

what():  OpenCV(3.4.6) /path/to/opencv/modules/core/src/matrix_wrap.cpp:118: 
error: (-213:The function/feature is not implemented) You should explicitly call download method for cuda::GpuMat object in function 'getMat_'

3

what():  OpenCV(3.4.6) /path/to/opencv/modules/core/src/matrix_wrap.cpp:130: 
error: (-213:The function/feature is not implemented) Unknown/unsupported array type in function 'getMat_'

Which error is prompted, seems to be random. I ran it multiple times and received all three multiple times. The most frequent one, however is the third one.

my program is basically just:

#include "astra/astra.hpp"

int main(int argc, char **argv){
 astra::initialize();
}

Commenting the init line, resolves the error.
I also found this post, dealing with the same problem by installing OpenCV2.4.X. Unfortunately, that is not a possible solution, since I have to use 3.X.X.
Not using the SDK is not possible, since I want to use their Body tracking SDK.

Does anyone have an idea, how to resolve my issue ?
Kind regards.

1 Like

Hello,i have the same question. Did you solve it?