OpenCV(OpenCV的全稱是:Open Source Computer Vision Library)是當(dāng)今一個(gè)最受歡迎最先進(jìn)的計(jì)算機(jī)視覺(jué)庫(kù),從許多非常簡(jiǎn)單的基本任務(wù)(圖像數(shù)據(jù)的捕獲和預(yù)處理)到高水平的算法(特征提取、運(yùn)動(dòng)跟蹤、機(jī)器學(xué)習(xí))都有它的身影。此外它還是一個(gè)自由軟件為C,C++,Java和Python提供豐富的API(應(yīng)用程序接口)。另外還提供wrappers功能服務(wù)OpenCV本身的代碼庫(kù)是跨平臺(tái)的,經(jīng)常用在實(shí)時(shí)圖形處理和計(jì)算機(jī)視覺(jué)領(lǐng)域。
Install OpenCV 2.4.9 in Ubuntu 14.04, 13.10 OpenCV 2.4.9 新特性 --------------------------------------分割線 -------------------------------------- Ubuntu Linux下安裝OpenCV2.4.1所需包 http://www./Linux/2012-08/68184.htm Ubuntu 12.04 安裝 OpenCV2.4.2 http://www./Linux/2012-09/70158.htm CentOS下OpenCV無(wú)法讀取視頻文件 http://www./Linux/2011-07/39295.htm Ubuntu 12.04下安裝OpenCV 2.4.5總結(jié) http://www./Linux/2013-06/86704.htm Ubuntu 10.04中安裝OpenCv2.1九步曲 http://www./Linux/2010-09/28678.htm 基于QT和OpenCV的人臉識(shí)別系統(tǒng) http://www./Linux/2011-11/47806.htm --------------------------------------分割線 -------------------------------------- OpenCV的詳細(xì)介紹:請(qǐng)點(diǎn)這里 安裝 OpenCV cd /opencv/ 步驟二:卸載任何以前安裝的ffmpeg和x264軟件 步驟三:安裝一些依賴關(guān)系 sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-config yasm libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils -安裝ffmpeg sudo apt-get update sudo apt-get install ffmpeg gstreamer0.10-ffmpeg Step 4: Download and extract OpenCV 步驟四:下載和解壓提取OpenCV unzip OpenCV-2.4.9.zip cd opencv-2.4.9 Step 5: Begin Build Process 步驟五:開(kāi)始編譯安裝 mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON .. make -j2 sudo make install sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf' sudo ldconfig
—重啟電腦 步驟六:使用OpenCV示例 cd /usr/local/share/OpenCV/samples/c —請(qǐng)執(zhí)行以下幾個(gè)命令 sudo chmod +x build_all.sh sudo ./build_all.sh ./facedetect "/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml" lena.jpg 或者 ./facedetect --cascade="/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml" lena.jpg 圖見(jiàn)本文最上面。 英文原文:Install OpenCV 2.4.9 in Ubuntu 14.04, 13.10
|
|
來(lái)自: hask578 > 《Linus Torvalds》