1.装系统
1.1
按照教程安装,每次重新刷新系统后,再次进行ssh时需要执行
ssh-keygen -R 192.168.43.113
后才能重新远程连接
1.2
装好后,执行
sudo raspi-config
将摄像头,ssh,vnc那里的都开启
然后重启
1.3
进入vnc远程界面,要更新一下,不然后面安装opencv要出问题
1.4更新源
sudo nano /etc/apt/sources.list
注释第一行,添加内容
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
更换pip的源
sudo mkdir ~/.pip
ls .pip
sudo nano pip.conf
写入以下内容
[global]
timeout = 10
index-url = http://mirrors.aliyun.com/pypi/simple/
extra-index-url= http://pypi.douban.com/simple/
[install]
trusted-host=
mirrors.aliyun.com
pypi.douban.com
1.5
从官网下载的opencv不完整,需要补充文件到opencv_contrib/modules/xfeatures2d/src/这个路径下
然后再编译