motion是linux下一款开源的摄像头监控软件,用命名行运行,只保存有运动物体的图像。
1. 安装
sudo apt install motion
2. 配置
备份配置文件
sudo cp /etc/motion/motion.conf /etc/motion/motion.conf.bak
打开配置文档
sudo vim /etc/motion/motion.conf
更改文档中以下内容
width 640 #图像的宽
height 480 #图像的高
target_dir /home/pi/motion-images #图片保存的路径
stream_localhost off #允许通过网页查看摄像头
stream_auth_method 2 #开启密码认证
stream_authentication 用户名:密码 #网页查看摄像头的用户名和密码
创建一个目录来存储Motion拍下的照片
mkdir ~/motion-images
官方详细配置说明:
使用树莓派与motion构建摄像头监控系统

本文档介绍了如何利用开源软件motion在Linux(树莓派)上搭建摄像头监控系统。步骤包括安装motion、配置(如备份配置文件、创建存储照片的目录)、运行程序、设置开机启动以及部分配置选项的解释。
最低0.47元/天 解锁文章
878

被折叠的 条评论
为什么被折叠?



