Installing opencv on ubuntu

Hey,
I am new to ubuntu(got it installed 3 days ago) and I wonder if anyone could help me with setting up opencv on it. First of all I will tell you all I have done but just know that most of the time I had no idea what I was doing… I followed few advices on installing tar.gz files from google.

  1. I downloaded the .tar.gz file from their website: http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.5/
  2. I extracted it using tar -xf
  3. I used cmake on CMakeLists.txt
  4. Then I typed inside the directory ‘make’ and after it was done I did ‘sudo make install’ and this is where I am stuck now.

are you sure opencv is not in the offical repos?

Have you tried following these instructions on installing it?

Well, this doesn’t install the java binding as far as I understand?

I am not sure if java binding is, can I somehow check it?

use javacv it’s java bindings to opencv, and the javacv-0.5-cppjars file has binaries. you just need to set the jars in your classpath.

Downside to this is that the documentation is really crappy or non-existent I should say.

The JavaCV Google Code page has examples from the OpenCV Cookbook that have been ported to Java. This is the beginning one.

EDIT: The page I linked to also has information on how to convert from OpenCV to JavaCV if you scroll down. Using that and the OpenCV documentation should work just fine.