본문 바로가기
Programming Language/OpenCV

우분투에 OpenCV 3.0 설치

by 민트초코맛꼬깔콘 2015. 9. 22.
반응형

OpenCV : http://opencv.org/

설치방법 : http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_install/linux_install.html


$ sudo apt-get install build-essential


$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev


$ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev



-Download-

opencv_3.0.0.tar.gz

opencv_contrib_3.0.0.tar.gz


~/opencv 내에 압축해제


cd ~/opencv

mkdir build

cd build


cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.0.0/modules -DWITH_CUDA=ON -DWITH_CUBLAS=ON -DWITH_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DWITH_DOC=ON ..


make -j7


sudo make install

반응형