Skip to content
firepick1 (localhost) edited this page Nov 13, 2015 · 21 revisions

HTTP REST camera service

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

Supported Protocols

The following REST commands may fail with HTTP501 if the designated camera is not available.

➡️ GET /camera/model

Return JSON model describing default camera. Model attributes include:

  • available is true when available
➡️ GET /camera/default/image.jpg

Capture and return current image from default available camera chosen 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)
➡️ GET /camera/raspistill/image.jpg

Capture and return current image from Raspberry Pi camera

➡️ GET /camera/video0/image.jpg

Capture and returns current image from /dev/video0 camera

➡️ GET /camera/video1/image.jpg

Capture and return current image from /dev/video1 camera

Reserved protocols

The following URLs are reserved for future use as REST protocols

  • POST /camera/model
  • POST /camera/raspistill/model
  • POST /camera/video0/model
  • POST /camera/video1/model

See Also

Clone this wiki locally