今天在linux Ubuntu12.4 上面玩了 OpenCV-2.4.2
我是用 Winxp 上面跑VMware10(網路序號)再灌 Ubuntu12.4
目前只安裝並且跑跑他的範例程式還不錯玩
可以參考下面的步驟
我參考兩個網址 應該是一樣的
http://www.raben.com/book/export/html/3
http://miloq.blogspot.tw/2012/12/install-opencv-ubuntu-linux.html
最後跑出臉部辨認的 lena XD 下一步再來玩玩 開 USB camera像在 Windows 環境中的玩法吧
下面為擷取自網頁 http://miloq.blogspot.tw/2012/12/install-opencv-ubuntu-linux.html
Note: This tutorial has been tested on Ubuntu 12.04 LTS with OpenCV 2.4.3.
Install OpenCV on Ubuntu Linux is a bit long but very easy. Simply, follow these steps:
1. UPDATE AND UPGRADE UBUNTU
Open your terminal and execute:
2. INSTALL THE DEPENDENCIES
Now execute:
3. DOWNLOAD AND DECOMPRESS OPENCV
Enter the OpenCV official website and download the latest version for Ubuntu Linux. Then decompress the downloaded file.
4. COMPILE OPENCV
Now, in your terminal, make sure you are within the OpenCV directory and run the following commands:
5. CONFIGURE OPENCV
In your terminal, execute:
Add the following line and save it:
Now, in your terminal, execute:
Again, execute:
Add the following two lines at the end of the file and save it:
export PKG_CONFIG_PATH
Finally, reboot your computer.
6. TRY AN EXAMPLE
To test an example, from your terminal enters in the OpenCV folder. Once you're inside it enters insamples/c.
Now, execute:
