mat newMat = new Mat() crashes android app [closed]
The title pretty much sums it up. I have this chunk of code that runs fine, but when I try to create a mat, the entire app crashes.
The title pretty much sums it up. I have this chunk of code that runs fine, but when I try to create a mat, the entire app crashes.
So in a mixture of my noobness and exhaustion, I posted this question. After A good night's sleep, I realized that I just forgot to initialize opencv in the main activity of my android app.
I will close this and save everyone the trouble, sorry for your time.
Asked: 2017-01-24 20:55:13 -0600
Seen: 1,097 times
Last updated: Jan 27 '17
no it does not sum up anything.
your complaint is missing everything, from code, to context.
wild guess (you seem to be a typical noob): you're trying to execute opencv code, while the native dll's powering it are not loaded yet. (e.g. you're trying to run it from onCreate())
stacktrace, or this won't go anywhere.
I completely agree with @berak, without context, this is going nowhere ...
@berak you are right, I am a total noob at this. I was also exhausted when I wrote this post, so that made things worse. I am answering my own question, because I figured it out.