I am working on a javacv project, but every time I try to declare a matrix as shown below:
Mat trainingData = new Mat();
I get this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J
at org.opencv.core.Mat.n_Mat(Native Method)
at org.opencv.core.Mat.<init>(Mat.java:447)
And when I look for a solution, I always find that I need to add:
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
But I always have the same mistake.
Synda source
share