Archive

First try out java opencv, which is java wrapper for opencv. The first thing you should do is to follow the instruction install opencv. You will need to know where are your lib files locate. In this example, I have them all in ‘opencv24lib’. Here’s what it contains:

Download javacv zip files, unzip it, you will get several jar files(wrappers) which needed for your project. Below is a link to a good warming up example of javacv:

– Create a folder for your ‘framework’ on the left panel, let’s say, name it as “opencv-Frameworks”, and right click it use “Add files to..”. You will going to add three files which are located at </opt/local/lib>. They are: libopencv_ml.2.3.1.dylib, libopencv_highgui.2.3.1.dylib, libopencv_core.2.3.1.dylib

– You don’t have to copy those items, but just an option 🙂

– Now, copy the demo code in the above link to your main.cpp, click build+run, you should see a pop up window like this:

1. Download and install Python 2.7
2. Download and install NumPy and SciPy. You can find most of the compieled packages for windows here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
3. Download OpenCV 2.3.1 for windows use the superpack one: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/
4. Double click on the OpenCV installer. It will extract OpenCV to your selected folder. I put it to C:\OpenCV2.3.
5. Configure your opencv: add path to your system enviroment.
At least you should add C:\OpenCV2.3\build\x86\vc10\bin to PATH
I forget what I did when I first install opencv, well this is my current system path:
C:\OpenCV2.3\build\lib\Debug;C:\OpenCV2.3\build\x64\vc10\bin;C:\Program Files\Intel\tbb\4.0\bin\intel64\vc10;C:\OpenCV2.3\bin

6. OpenCV 2.3.1 folder structure is different from OpenCV 2.2. The pre-build library and Python package are located at C:\OpenCV2.3\build.
7. Open Python IDLE
8. Add the following path to your python path: