树莓派使用usb摄像头
在树莓派上使用usb摄像头时,由于无法直接通过raspivid工具直接采集视频流,因此很多适用于树莓派专用摄像头的监控方案难以实现。
sudo apt
-get install fswebcam
fswebcam
-S 10 test2
.jpg
fswebcam
-d
/dev
/video0
--no
-banner
-r
320x240
-S 10 /home
/pi
/Pictures
/image
.jpg
在树莓派里开摄像头
192.168.43.106:8081 Motion
链接: 常用vim操作指令
$sudo apt
-getinstall motion # 装
$sudo nano
/etc
/default/motion #配置
$sudo vim
/etc
/motion
/motion
.conf #文件编辑器
$sudo motion #启用motion
#service motion stop 关闭 要root