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

Overview

The /camera REST service captures and returns images from designated camera.

REST protocol

  • HTTP GET /camera/model

Returns JSON for current camera model.

/camera/default/image.jpg

**HTTP GET ** 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 for /dev/video1 (e.g., laptop remote USB camera)
  3. video0 for /dev/video0 (e.g., laptop 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