检测python位置
–which python
–which python3
–whereis python
sudo reboot 树莓派重启
shutdown -r now 树莓派重启
sudo raspi-config Advance:选择A5 Reloluation
python --version
vcgencmd get_camera显示正式摄像机的启用和检测状态。 1表示是,0表示否。尽管所有固件(精简版除外)均支持相机,但需要使用raspi-config启用此支持。
https://hackpi.fun/docs/树莓派中文文档(基于官方版)
ping -4 raspberrypi.local -4意为IPv4地址(cmd中)
报错:
RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
–https://stackoverflow.com/questions/56098431/runtimewarning-this-channel-is-already-in-use
–https://raspberrypi.stackexchange.com/questions/55143/gpio-warning-channel-already-in-use
error(-215) !empty() in function detectMultiScale
–可能是代码从Win移植到Linux后出现的路径错误问题导致的,两个系统的路径规则不同,在不熟悉路径规则情况下建议使用绝对路径不易出错