Ask Your Question
-1

SOLVED How do I install OpenCV 2.4.11 on Windows 7?

asked 2018-04-17 12:34:24 -0600

Marko5280 gravatar image

updated 2018-04-18 06:30:34 -0600

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/tutor...

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)?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-04-18 05:53:18 -0600

Marko5280 gravatar image

SOLVED

OpenCV has been updated. The latest version is OpenCV 3.4.1!

https://opencv.org/opencv-3-4-1.html

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-17 12:34:24 -0600

Seen: 346 times

Last updated: Apr 18 '18