Sunday, May 10, 2015

OpenCV 2.4.x over Ubuntu

I installed Opencv 2.4.8 over ubuntu 12.04, works good with images, but i getting error at display/read videos, then i research and use other resources:

[1], is best for me, have scripts for install opencv library, if you like more details about steps, is possible use [2] or [3].


-----------------------------------------

When you like java libraries
Need to do[4]:

$ export JAVA_HOME=/root/jdk1.7.0_07
$ mkdir build
$ cd build
$ cmake -DBUILD_SHARED_LIBS=OFF ../


If you get this message: libv4l2.so.0: error adding symbols: DSO missing from command line collect2, do that:

$grep -rl -- -lv4l1 samples/* modules/* | xargs sed -i 's/-lv4l1/-lv4l1 -lv4l2/g'

If not works, start again using [5].

Resources:

[1] https://help.ubuntu.com/community/OpenCV
[1.1]  https://github.com/jayrambhia/Install-OpenCV/tree/master/Ubuntu/2.4
[2] http://abhitak.wordpress.com/2009/08/29/installing-opencv-on-linux-ubuntu-9-04/
[3] http://www.ozbotz.org/opencv-installation/
[4] http://www.giuseppeurso.eu/en/how-to-compile-opencv-on-centos-with-java-support/
[5] http://www.sysads.co.uk/2014/05/install-opencv-2-4-9-ubuntu-14-04-13-10/

No comments:

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com