starplatinum3 / plant-shutter-pi

一个简单易用的延时摄影(TimeLapse)程序。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plant-shutter for raspberry pi

icon

一个简单易用的延时摄影(TimeLapse)程序。

成片B站视频


Features

  • 支持生成预览视频
  • 实时预览调参
  • 支持使用WebDAV共享拍摄的图片
  • 使用Video for Linux 2 (v4l2) API
  • All-In-One,开箱即用

QuickStart

chmod +x plant-shutter
./plant-shutter

在浏览器打开管理界面

Systemd

Storage

.
└── root/
    ├── <project-name>/
    │   ├── images/
    │   │   ├── <image>.jpg
    │   │   ├── ...
    │   │   └── info.json
    │   └── videos/
    │       ├── <name>.avi
    │       └── ...
    ├── ...
    └── info.json

Build

docker build --platform "linux/arm/v6" --output "./bin"  .

RNDIS

树莓派的网络性能有限,如果你使用的zero w,那文件传输速率仅有2-3MB/s,使用RNDIS,将树莓派通过usb连接电脑,并将树莓派识别成网络设备,可以直接通过ip:port的方式访问树莓派,提升文件下载速度。

https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget

vi /boot/config.txt
# 最后一行新增
dtoverlay=dwc2

vi /etc/modules
# rootwait后添加空格和如下内容
modules-load=dwc2,g_ether

安装RNDIS驱动

通过usb连接树莓派

Hardware

测试硬件

Todo

  • 图片存储结构
  • 堆叠视频
  • 相机管理
  • 相机参数调节
  • 任务调度与状态管理
  • 测试RNDIS

Driver

v4l2

https://github.com/vladimirvivien/go4vl

# enable driver
sudo raspi-config

Other

icon

https://favicon.io/emoji-favicons/blossom/

PixelViewer

https://carinastudio.azurewebsites.net/PixelViewer/

Image utils

https://github.com/disintegration/imaging https://gist.github.com/logrusorgru/570d64fd6a051e0441014387b89286ca https://github.com/nfnt/resize https://github.com/icza/mjpeg

pi camera

https://www.raspberrypi.com/documentation/accessories/camera.html

About

一个简单易用的延时摄影(TimeLapse)程序。

License:MIT License


Languages

Language:Go 98.5%Language:Dockerfile 1.3%Language:Makefile 0.1%