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,064 times
Last updated: Jan 27 '17
android: how to put a column into Mat
How to update Mat with multiple channels?
Convert Mat to MatOfByte in Android
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?
Unresolved inclusion in OpenCV+Android tutorial
What is the most effective way to access cv::Mat elements in a loop?
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Which values for window size and number of pyramids are reasonable for calcOpticalFlowPyrLK?
Errors running builder 'CDT Builder' when trying to build OpenCV for android samples
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.