切换到宽版
  • 5445Read
  • 1Replay

Raspberry Pi 定时拍照 [复制链接]

上一主题 下一主题
离线admin
 

只看楼主 倒序阅读 使用道具 楼主  posttime: 2016-01-06
1. 开机启动
vim /etc/rc.local
  1. /home/pi/SimpleHTTP.sh
2. 定时重启服务器,定时拍照
  1. 34 14 * * * /home/pi/KillHTTP.sh
  2. 35 14 * * * /home/pi/SimpleHTTP.sh
  3. 48  * * * * /home/pi/MakePIC.sh
3. 编辑文件
  1. pi@raspberrypi ~ $ cat SimpleHTTP.sh
  2. cd /home
  3. python -m SimpleHTTPServer

  1. pi@raspberrypi ~ $ cat KillHTTP.sh
  2. killall python

  1. pi@raspberrypi ~ $ cat MakePIC.sh
  2. filename=`date +%Y%m%d_%H%M%S`
  3. cd /home/pi
  4. raspistill -t 2000 -o $filename.jpg -w 800 -h 600



离线Francis

只看该作者 沙发  posttime: 2019-08-24
raspistill -o demo.jpg -w 800 -h 600 -t 500

连续拍照

raspistill -o image%d.jpg  -w 1024 -h 768 -t 20000 -tl 1000 -v


快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个