亲测可用
以下内容属于复制部分:
首先你需要一个树莓派能兼容的USB摄像头,笔者用的是罗技(Logitech)C270 高清网络摄像头,插上即可。软件方面非常简单只需要一个软件:motion。
下面我们介绍如何来给树莓派装个USB摄像头,然后远程访问摄像头拍摄的即时画面。
----
整理下的命令
更新软件
sudo apt-get update
sudo apt-get upgrade
安装摄像头软件
sudo apt-get install motion
配置相关
sudo nano /etc/motion/motion
更改配置
stream_port 8081
width
hight
stream localhost off
daemon on 后台运行
framerate 24(祯率)
stream maxrate 75 (提高流畅度)
locate_motion mode on(检测到有
启动摄像头服务
sudo systemctl start motion
sudo systemctl enable motion
启动摄像头
sudo motion
停止摄像头
sudo killall -TERM motion