OpenCV Installation for Ubuntu 12.04
Upcoming SlideShare
Loading in...5
×
 

OpenCV Installation for Ubuntu 12.04

on

  • 1,198 views

I am describing steps for installing OpenCV in Ubuntu 12.04 . It will also help you in setting up OpenCV for latest versions of Ubuntu. For any query contact me at gunjan101@gmail.com

I am describing steps for installing OpenCV in Ubuntu 12.04 . It will also help you in setting up OpenCV for latest versions of Ubuntu. For any query contact me at gunjan101@gmail.com

Statistics

Views

Total Views
1,198
Views on SlideShare
1,198
Embed Views
0

Actions

Likes
0
Downloads
24
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

OpenCV Installation for Ubuntu 12.04 OpenCV Installation for Ubuntu 12.04 Document Transcript

  • OpenCV installation for Ubuntu 12.04 In this tutorial I will make you learn the steps to install OpenCV 2.4.3 in Ubuntu OS. For my project on visually impaired person I am using OpenCV 2.4.3 with Ubuntu 12.04 Operating system. OpenCV 2.4.3 have better compatibility with integrated cameras of laptop as well as latest operating system like Windows 7, Windows 8 and Windows 8.1 and in Linux domain Ubuntu itself . It provides good frame support and image processing operation and I would recommend you to use OpenCV 2.4.3. Still if you wish to use latest version of OpenCV (OpenCV 2.4.6 till Saturday, November 9, 2013) same steps can be carried out for newer version and you just need to write 2.4.6 in place of 2.4.3 To install OpenCV 2.4.3 on the Ubuntu 12.04 operating system, first install a developer environment to build OpenCV. sudo apt-get -y install build-essential cmake pkg-config Install Image I/O libraries sudo apt-get -y install libjpeg62-dev sudo apt-get -y install libtiff4-dev libjasper-dev
  • Install the GTK dev library sudo apt-get -y install libgtk2.0-dev Install Video I/O libraries sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev Optional - install support for Firewire video cameras sudo apt-get -y install libdc1394-22-dev Optional - install video streaming libraries sudo apt-get -y install libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev Optional - install the Python development environment and the Python Numerical library sudo apt-get -y install python-dev python-numpy
  • Optional - install the parallel code processing library (the Intel tbb library) sudo apt-get -y install libtbb-dev Optional - install the Qt dev library sudo apt-get -y install libqt4-dev Now download OpenCV 2.4.3 to wherever you want to compile the source. ‘mkdir’ creates a new folder and you can give a name as you wish for folder mkdir Gunjan_OpenCV cd Gunjan_OpenCV wget 2.4.3.tar.bz2 http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.3/OpenCV-
  • tar -xvf OpenCV-2.4.3.tar.bz2 Create and build directory and configure OpenCV with cmake. Don't forget the ‘..’ part at the end of cmake command. cd OpenCV-2.4.3 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 ..
  • Now compile it make And finally install OpenCV sudo make install Now you are ready to use OpenCV Image Library in your projects.  THANK YOU 