sudo apt-get update
sudo apt-get install -y build-essential cmake pkg-config cmake-qt-gui
sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install -y libxvidcore-dev libx264-dev
cd ~
wget https://github.com/opencv/opencv_contrib/archive/3.3.0.tar.gz -O opencv_contrib-3.3.0.tar.gz
tar zxvf opencv_contrib-3.3.0.tar.gz
wget https://github.com/opencv/opencv/archive/3.3.0.tar.gz
tar -zxvf 3.3.0.tar.gz
opencv-3.3.0/
cd opencv-3.3.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=/home/pi/opencv_contrib-3.3.0/modules \
-D BUILD_EXAMPLES=ON \
-D ENABLE_NEON=ON \
-D ENABLE_VFP3=ON ..
make -j2 VERBOSE=1
http://my-web-site.iobb.net/~yuki/2017-09/raspberry-pi/opencv3-build/
2017年10月9日 星期一
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言