2011年10月5日 星期三

OpenCV 2.3.1 on Ubuntu

按照此部落格方式依序執行

Tutorial: A Comprehensive Guide to Installing and Configuring OpenCV 2.3.1 on Ubuntu 
http://ozbots.org/opencv-installation/ 


有二個地方要注意
1.install x264.
./configure --enable-static --enable-shared
make
sudo make install
2. install ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-shared
make
sudo make install


要特別注意~
試了好久說~

從這篇討論區文章得知
http://opencv-users.1802565.n2.nabble.com/Video-Capture-td6807102.html

I had also got the same problem. I had solved it in a different way. I am
using ubuntu, eclipse Helious and opencv 2.3 .
             First I uninstall opencv
             Download and install libv4l.
             configure again opencv with cmake. There I choose WITH_V4L
option and generate.
             then make and make install

  Now I can access webcam as well as my laptop camera by using
cvCaptureFromCAM(0). 

 最後還是要手動編譯

沒有留言:

張貼留言