I am new to OpenCV, but I believe that I have everything set up correctly by following the instructions on this page link
Basically, my app crashes whenever I try to access anything from the OpenCV library from activity.
Take the following code snippet as an example:
Mat src = new Mat(100, 100, CvType.CV_8UC4);
here I'm just trying to initialise a matrix. When I debug the code, it goes into the Mat.class file, then it will throw a 'Invocation TargetException' saying 'The source attachment does not contain the source for the file Invocation TargetException.class.'
I have searched for solutions exhaustively on the Internet but couldn't find a satisfactory one and I've been stuck on this issue for weeks. If any further information is required please let me know. Many thanks in advance!
Note: I call OpenCVLoader at the very beginning and it returns true, and I have the following code snippet taken from the sample OpenCV app:
private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
@Override
public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS: {
// TODO: test
System.loadLibrary("img_proc_utils");
}
break;
default: {
super.onManagerConnected(status);
}
break;
}
}
};