Sign inSign up

nieleyde/rpi-camera

By nieleyde

Updated about 10 years ago

Camera API for Raspberry Pi

Image
3

10K+

nieleyde/rpi-camera repository overview

Camera API for Raspberry Pi

This Docker image for Raspberry Pi enables the capture of pictures from Raspberry Pi camera using HTTP endpoints.

Example:

docker run -d -p 80:80 --privileged --name mycamera nieleyde/rpi-camera:latest

you can of course map to any port you want --privileged and --device flags are required to access raspberry pi camera from inside a Docker container

To take a picture with camera, make an HTTP request to this URL

http://ipaddress/shoot

To download picture, make an HTTP request to this URL

http://ipaddress/static/cam.jpg

This container was built on Pi Zero, and thus far I've only tested on Pi Zero using Hypriot Docker image for Raspberry Pi.
http://blog.hypriot.com/downloads/


I created this container because I wanted to access the Raspberry Pi camera from Node-RED (https://hub.docker.com/r/nodered/node-red-docker/) running on the same host, or even a remote host. Since Node-RED includes a node for invoking HTTP requests, I decided to create a simple Docker image that serves two endpoints. One endpoint /shoot will take the picture using raspistill, and the second endpoint /static/cam.jpg will download the picture. I can easily invoke these endpoints using the HTTP REQUEST node.

9/16/2016 - I confirmed this image runs on RPI3

Tag summary

Content type

Image

Digest

Size

171.8 MB

Last updated

about 10 years ago

docker pull nieleyde/rpi-camera