硬件:树莓派,usb摄像头
软件:motion
-
树莓派直接插入USB摄像头
-
安装motion:sudo apt-get install motion
-
运行:sudo motion
-
开机启动:sudo nano /etc/default/motion
将start_motion_daemon=no将no改为yes。 -
在网页输入IP地址:8081
-
摄像配置:sudo vim /etc/motion/motion.conf
daemon off 改成on。
设置分辨率:width 800 height 600
关闭localhost的限制:stream_localhost off