美文网首页
树莓派安装摄像头

树莓派安装摄像头

作者: 古三井 | 来源:发表于2017-11-09 11:12 被阅读0次

raspistill -o img.jpg

sudo apt-get install socat

raspivid -w 300 -h 100 -t 999999 -hf -o -| socat - udp-datagram:192.168.2.36:8080

raspivid -w 80 -h 60 -t 3000 -o -|socat - udp-datagram:192.168.2.36:8000

在192.168.2.36的机器上,用vlc打开udp/h264://@:8080 即可

添加计划任务,没隔30秒,拍摄一张图片。

写一个sh脚本

sudochmod+x time.sh

sudocrontab-e

*/10* * * */home/pi/yeelink.sh

相关文章

网友评论

      本文标题:树莓派安装摄像头

      本文链接:https://www.haomeiwen.com/subject/fljpmxtx.html