ORB-SLAM-Android icon indicating copy to clipboard operation
ORB-SLAM-Android copied to clipboard

init opencvLoader crashed with "Not supported in system context "

Open erickingxu opened this issue 7 years ago • 0 comments

I used AndroidStudio 2.3.3 for build your project , I used ndk-build to build momo library sucucessfully. But crashed when debug into this code : public void onResume() { super.onResume(); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback);//crashed here } ,and then I debug into it , found crashed here with error: "Not supported in system context " if (AppContext.bindService(new Intent("org.opencv.engine.BIND"), helper.mServiceConnection, Context.BIND_AUTO_CREATE))

So i try to replace OpenCV_VESRION_2_4_11(refer your opencv library in project), it is still the same error. Ps: my smart phone is Samsung GALAXRY 7, and some other phone like huawei is the same error.

Please give me some tips for this.

erickingxu avatar Feb 01 '18 09:02 erickingxu