OpenCV installeerimine: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Mernits (talk | contribs)
Mernits (talk | contribs)
Line 5: Line 5:
Käivita järgnevad korraldused
Käivita järgnevad korraldused
<pre>
<pre>
sudo apt-get install libpng12-0 pkg-config -y
sudo apt-get install zlib1g zlib1g-dev libjpeg-dev libtiff4  -y
sudo apt-get install libtiff4-dev libjasper1 libjasper-dev -y
sudo apt-get install libgtk2.0-dev swig -y
sudo apt-get install automake -y
sudo apt-get install libcv-dev -y
sudo apt-get install build-essential cmake make g++ -y
</pre>


QT4 installeerimine
<pre>
sudo apt-get install libqt4-dev -y
</pre>


ITK robootikaklubi svn hoidlast asjade saamiseks tuleb paigaldada subversion
sudo apt-get install pkg-config cmake qtcreator build-essential libgtk-3-dev libjpeg62-dev libtiff4-dev libjasper-dev libpng12-dev zlib1g-dev openexr ffmpeg libgstreamer0.10-dev libv4l-dev libxine-dev libunicap2-dev libavformat-dev libswscale-dev subversion qtcreator
<pre>
 
sudo apt-get install subversion -y
</pre>


Tõmba viimane vers robotvision projektist
<pre>
svn co http://robot.itcollege.ee/svn/vision/robotvision2009/
</pre>
</pre>


C++ IDE qtcreator installeerimine
<pre>
sudo apt-get install qtcreator qt4-doc-html git-core -y
</pre>


Tõmba viimane vers robotvision projektist
<pre>
<pre>
sudo aptitude install libcvaux-dev libhighgui-dev -y
svn co http://robot.itcollege.ee/svn/vision/botmaster2010/
</pre>
</pre>



Revision as of 19:06, 23 August 2011

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 qtcreator build-essential libgtk-3-dev libjpeg62-dev libtiff4-dev libjasper-dev libpng12-dev zlib1g-dev openexr ffmpeg libgstreamer0.10-dev libv4l-dev libxine-dev libunicap2-dev libavformat-dev libswscale-dev subversion qtcreator



Tõmba viimane vers robotvision projektist

svn co http://robot.itcollege.ee/svn/vision/botmaster2010/

OpenCV kompileerimine

  • lae alla opencv stabiilse haru algteks http://opencv.willowgarage.com/wiki/ Dowloads alt;
  • paki tulemus lahti
  • sisene lahtipakkimisel loodud kausta
  • loo alamkaust release
  • sisene kausta relase ja käivita
cmake .. -DWITH_JPEG=OFF -DCMAKE_BUILD_TYPE=RELEASE

PS: võib muuta ka march=native cmake konfifailist, kui tegu on robotile mineva asusega

PPS: JPEG=OFF on hea, et kaamerast tuleb stream ei oleks MJPEG.

Kui nutetakse v4lv1 puudumise üle a'la OpenCV-2.2.0/modules/highgui/src/ cap_v4l.cpp:217:28: fatal error: linux/videodev.h: No such file or directory

Siis paigalda v4lv1 dev pakk

sudo apt-get install libv4l-dev

Ja muuta modules/highgui/src/cap_v4l.cpp

rida #include <linux/videodev.h> asendada reaga #include <libv4l1-videodev.h> Probleemide korral uue ubuntuga: - http://tech.groups.yahoo.com/group/OpenCV/message/79758