OpenCV installeerimine: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo apt-get | sudo apt-get install pkg-config cmake build-essential -y | ||
sudo apt-get - | sudo apt-get build-dep opencv -y | ||
sudo apt-get install qt4-qmake qtcreator -y | |||
sudo apt-get | |||
</source> | </source> | ||
Lisaks võib paigaldada ka pakke: qtcreator | Lisaks võib paigaldada ka pakke: qtcreator | ||
Line 22: | Line 15: | ||
==OpenCV kompileerimine== | ==OpenCV kompileerimine== | ||
Lae alla OpenCV Unix versioon 2.4.3 | Lae alla OpenCV Unix versioon 2.4.3 | ||
<source lang="bash"> | <source lang="bash"> | ||
cd ~ | cd ~ | ||
wget https://github.com/Itseez/opencv/archive/2.4.6.1.tar.gz | wget https://github.com/Itseez/opencv/archive/2.4.6.1.tar.gz | ||
Line 31: | Line 27: | ||
mkdir build | mkdir build | ||
cd build | cd build | ||
</source> | </source> | ||
Line 46: | Line 45: | ||
Tõmba viimane vers robotvision projektist | Tõmba viimane vers robotvision projektist | ||
<source lang="bash"> | <source lang="bash"> | ||
svn co | svn co https://robot.itcollege.ee/svn/vision/botmaster2012/ | ||
</source> | </source> | ||
Line 53: | Line 52: | ||
PS: JPEG=OFF on hea, et kaamerast tuleb stream ei oleks MJPEG. | PS: JPEG=OFF on hea, et kaamerast tuleb stream ei oleks MJPEG. | ||
http://karytech.blogspot.com/2012/05/opencv-24-on-ubuntu-1204.html | |||
[[Category:Robootika]] | [[Category:Robootika]] |
Latest revision as of 14:37, 12 November 2013
Eeldused
Luba failis /etc/apt/sources.list seal vaikimisi väljakommenteeritud repositooriumid multiverse ja universe
Käivita järgnevad korraldused
sudo apt-get install pkg-config cmake build-essential -y
sudo apt-get build-dep opencv -y
sudo apt-get install qt4-qmake qtcreator -y
Lisaks võib paigaldada ka pakke: qtcreator
OpenCV kompileerimine
Lae alla OpenCV Unix versioon 2.4.3
cd ~
wget https://github.com/Itseez/opencv/archive/2.4.6.1.tar.gz
tar zxvf 2.4.6.1.tar.gz
cd opencv-2.4.6.1/
mkdir build
cd build
cmake .. -DWITH_JPEG=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_FLAGS="-march=native -O3 -ftree-vectorize" -DCMAKE_C_FLAGS="-march=native -O3 -ftree-vectorize"
make -j4 #Kui sul on 4 trheadi/coret
sudo make install
sudo ldconfig
Tõmba viimane vers robotvision projektist
svn co https://robot.itcollege.ee/svn/vision/botmaster2012/
PS: JPEG=OFF on hea, et kaamerast tuleb stream ei oleks MJPEG.
http://karytech.blogspot.com/2012/05/opencv-24-on-ubuntu-1204.html