Computer Vision con OpenCV

Text.

Slackware 14.1 (current)

#

  • enca
  • libass
  • libblueray
  • libaacs
  • libdc1394
  • libmp4v2
  • gavl
  • frei0r (circular dependency gavl->ffmpeg->opencv)
  • gsm
  • openjpeg
  • lame
  • OpenAL
  • libvpx
  • ode
  • fltk
  • mm-common
  • libsigc++
  • glibmm
  • cairomm
  • pangomm
  • atkmm
  • gtkmm
  • gtkglext
  • ffmpeg

cd opencv-2.4.5 mkdir build ; cd build cmake -D WITH_OPENGL=ON -D CMAKE_BUILD_TYPE=RELEASE -D WITH_CUDA=ON -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -D BUILD_EXAMPLES=ON -D WITH_TBB=ON .. make -j2 make install }}}

  • artoolkit
  • fftw
  • fmodex
  • gles
  • osmesa
  • nvidiacg
  • ode
  • squish
  • vrpn
  • bullet
  • rocket

makepanda/makepanda.py –verbose –everything –no-dx8 –no-dx9 –no-python –no-fcollada }}}

x264
<code>
./configure --enable-static --enable-pic --enable-shared

</code>

ffmpeg 1.x
<code>
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-pic --enable-shared
</code>

opencv
<code>
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..

</code>

Instalación Ubuntu

version=”$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o ‘"0-9+’ | cut -c2-)” echo “Installing OpenCV” $version mkdir OpenCV cd OpenCV echo “Removing any pre-installed ffmpeg and x264” sudo apt-get -qq remove ffmpeg x264 libx264-dev echo “Installing Dependenices” sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils ffmpeg echo “Downloading OpenCV” $version wget -O OpenCV-$version.tar.gz http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/$version/opencv-“$version”.tar.gz/download echo “Installing OpenCV” $version tar -xvf OpenCV-$version.tar.gz cd opencv-$version mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON .. make -j2 sudo make install sudo sh -c ‘echo “/usr/local/lib” > /etc/ld.so.conf.d/opencv.conf’ sudo ldconfig echo “OpenCV” $version “ready to be used” }}}

’'’Java’’’

export JAVA_HOME=/usr/lib/jvm/openjdk-1.7.0-amd64/ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_SHARED_LIBS=OFF .. }}}