【树莓派】用USB摄像头搭建web在线监控

Badia ·
更新时间:2024-09-20
· 879 次阅读

安装motion

sudo apt-get install motion

修改配置文件打开守护进程

sudo leafpad /etc/default/motion #no修改成yes: start_motion_daemon=yes

修改配置文件修改分辨率

sudo leafpad /etc/motion/motion.conf #deamon off 改成 on deamon on #设置分辨率 width 800 height 600 #关闭 localhost 的限制 webcontrol_localhost off stream_localhost off

运行

sudo motion

访问http://localhost:8081看到第一个摄像头的内容

访问http://localhost:8080则可看到多个摄像头下的画面

本地web搭建完成,若要远程访问,开teamview、向日葵远程管理软件、就像操作自己电脑一样,点开localhost:8081,完美,免费、想看多久看多久。

你采不起的野花 原创文章 24获赞 12访问量 1万+ 关注 私信 展开阅读全文
作者:你采不起的野花



Web 监控 树莓派

需要 登录 后方可回复, 如果你还没有账号请 注册新账号