Control the PICON hat from a comfy REST API.
make
This will build both the desktop (server
) version and the RPI version for ARM processors (server-arm
), from your desktop machine (for more performance). You could also build it from your raspberry-pi, but it's longer... :)
On desktop with a 'fake' hat:
./server
On RPI with the real PICON hat:
USE_PICON=yes ./server-arm
We also expose the raw H264 stream from the camera on the /camera
endpoint of the API.
mplayer -fps 200 -demuxer h264es ffmpeg://http://raspberrypi.local:8080/camera