树莓派安装opencv配置及相关error
一、开启camera
sudo apt-get uodate
sudo apt-get upgrade
sudo raspi-config
#Enable Camera
sudo reboot
raspistill -o Desktop/image.jpg #测试拍照保存在桌面,照相机预览打开5秒钟拍照
二、安装OpenCV
1、安装前的准备
sudo apt-get install python3
sudo apt-get install libopencv-dev
sudo apt-get install python-opencv
sudo pip3 install numpy
#将根目录扩展到整个SD卡
sudo raspi-config
#/Advanced Options /Expand Filesystem
sudo reboot
2、安装OpenCV所需的库
sudo apt-get instal