Step 1:Download open CV
open the link to download open CV 3.0:
Step 2:Extraction
Extract the downloaded archive to any arbitrary folder.
Step 3:Installing the Dependencies:
open terminal and follow the below steps or you can download the script file and run it (with sudo privileges):
- sudo apt-get -y install libopencv-dev build-essential cmake git libgtk2.0-dev pkg-config python-dev python-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev libtbb-dev libqt4-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip
Go to the extracted folder named opencv-3.0.0 and then start typing the following commands:
- mkdir build
- cd build
- cmake -D WITH_CUDA=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_OPENGL=ON ..
- sudo make -j4
- sudo make install
Step 4: Finishing installation
- sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
- sudo ldconfig
Step 6:Testing(Download this file and extract it and go to that directory and then type these commands)
- sudo cmake .
- sudo make
- ./DisplayImage lena.jpg
0 Comments:
Post a Comment