如何构建opencv和cmake和openmp

时间:2018-12-31 11:13:45

标签: python cmake raspberry-pi

我用这个命令在树莓派中安装OpenCv:

pip3 install opencv-python
pip3 install opencv-contrib-python
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install python3-pyqt5
sudo apt-get update
sudo apt-get install libhdf5-dev
sudo apt-get update
sudo apt-get install libhdf5-serial-dev
sudo apt install libqt4-test
sudo apt-get -y install libv4l-dev v4l-utils
sudo modprobe bcm2835-v4l2
现在我决定将openmp用于4个处理器内核。在教程中说使用cmake,然后使用以下命令安装cmake:
sudo apt-get install build-essential cmake cmake-curses-gui pkg-config
并安装此自由:
libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev libeigen3-dev libxvidcore-dev libx264-dev libgtk2.0-dev

我如何构建cmake(WITH_OPENMP = ON)和opencv?

0 个答案:

没有答案