0% found this document useful (0 votes)
80 views3 pages

Github - How To Install OpenCV 3.1 On Ubuntu 14.04 64 Bit

Install OpenCV 3.1

Uploaded by

Zachary James
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views3 pages

Github - How To Install OpenCV 3.1 On Ubuntu 14.04 64 Bit

Install OpenCV 3.1

Uploaded by

Zachary James
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HowtoinstallOpenCV3.1onUbuntu14.

0464bits
Updatelatestpackagesandinstalled
$ sudo apt-get update
$ sudo apt-get upgrade
apt-get updateapt-get upgrade

$ sudo apt-get install build-essential cmake pkg-config git


buildessential
git
cmake
pkgconfigincludelibrary
I/OJPEG,PNG,TIFF,etc.
$ sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
libjpegdev(JointPhotographicExpertsGroup)
libtiff5dev(TaggedImageFileFormat)
libpng12dev(PortableNetworkGraphics)
I/O...
$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
libxvidcore-dev libx264-dev
libavcodecdev(encodinganddecodingofaudio,video)
libavformatdev(muxinganddemuxingcontainers)
libswscaledev
libx264devH.264/MPEG4AVC
GTKOpenCVhighguimodule
$ sudo apt-get install libgtk2.0-dev
libgtk2.0dev(GimpToolKit)
$ sudo apt-get install libtbb-dev
libtbbdev(IntelThreadingBuildingBlocks)

OpenCV
$ sudo apt-get install libatlas-base-dev gfortran
gfortran(FormulaTranslation)
Python2.7Python3headerOpenCV+Pythonbindings
$ sudo apt-get install python2.7-dev python3-dev

GrabtheOpenCVsourcecode
OpenCV
$ git clone https://github.com/Itseez/opencv.git
$ cd opencv
$ git checkout 3.1.0
contrib
$ git clone https://github.com/Itseez/opencv_contrib.git
$ cd opencv_contrib
$ git checkout 3.1.0

$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-D BUILD_EXAMPLES=ON ..
$ make -j4
$ sudo make install
$ sudo ldconfig

CreateSeparatePythonEnvironments
Install
$ sudo pip install virtualenv virtualenvwrapper
$ sudo rm -rf ~/.cache/pip
Updateour~/.bashrc
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh

$ source ~/.bashrc
$ mkvirtualenv cv
$WORKON_HOME
$ mkvirtualenv [-i package] [-r requirements_file] [virtualenv options] ENVNAME

$ lsvirtualenv [-b] [-l] [-h]

You might also like