更换源
- →更换树莓派的源←
安装依赖
sudo apt-get update && sudo apt-get upgrade sudo apt-get install build-essential cmake pkg-config -y sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev -y sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y sudo apt-get install libxvidcore-dev libx264-dev -y sudo apt-get install libfontconfig1-dev libcairo2-dev -y sudo apt-get install libgdk-pixbuf2.0-dev libpango1.0-dev -y sudo apt-get install libgtk2.0-dev libgtk-3-dev -y sudo apt-get install libatlas-base-dev gfortran -y sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103 -y sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 -y
安装numpy
pip3 install numpy
直接用pip安装
pip3 install opencv-contrib-python==4.1.0.25
十年之约-虫洞穿梭而来,学习到了!