Skip to content
firepick1 (localhost) edited this page Nov 2, 2015 · 19 revisions

/camera REST service

REST service that captures and returns images from designated camera.

HTTP GET /camera/model

Returns JSON for current camera model.

HTTP GET /camera/default/image.jpg

Captures and returns current image from default camera. Default camera is chosen from available cameras by precedence:

  1. raspistill has highest priority as a supported camera
  2. video1 corresponds to /dev/video1, For a laptop, this is likely a remote USB camera.
  3. video0 corresponds to /dev/video0. For a laptop, this is likely the built-in camera.
HTTP GET /camera/raspistill/image.jpg

Captures and returns current image from Raspberry Pi camera

HTTP GET /camera/video0/image.jpg

Captures and returns current image from /dev/video0 camera

HTTP GET /camera/video1/image.jpg

Captures and returns current image from /dev/video1 camera

Clone this wiki locally