I am trying to run an OpenCV program on the Lego EV3. It uses OpenCV 2.4.11!
My plan is to: . . .
1) Get my program to run with OpenCV 3.4.1 on the PC in Java!
2) Get my program to run with OpenCV 2.4.11 on the PC in Java!
3) Get my program to run with OpenCV 2.4.11 on the EV3 in leJOS Java!
https://docs.opencv.org/2.4/doc/tutorials/introduction/java_eclipse/java_eclipse.html
Following the OpenCV 2.4.6 instructions above to install OpenCV 2.4.11 into a new ECLIPSE PROJECT proper, the correct procedure seems to be: . . .
1) Load OpenCV 2.4.11
2) Load the Native Library for OpenCV 2.4.11
3) Implement the Native Library in the code
I have done all this but, the test program does no run.
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class Hello
{
public static void main( String[] args )
{
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
Mat mat = Mat.eye( 3, 3, CvType.CV_8UC1 );
System.out.println( "mat = " + mat.dump() );
}
}
What have I not done(not done correctly)?