Periphery (Camera)
Capture Color Image
Changed onRetrieves the raw RGB color image from the camera's point of view.
- Returns the frame as PNG (lossless, the default) or as jpeg, which is a fraction of the size when the camera is polled rather than sampled once.
- There is no json form: a colour frame as an array of pixels would be megabytes with nothing to read it.
get/periphery/cameras/capture/color
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
result_type'rgb_png' | 'jpeg'
Image format the frame is returned in.
camera_prim_pathstring nullable
Path of camera prim. Leave it out to capture through the active viewport camera.
widthinteger
Image width in px
heightinteger
Image height in px
Response
Successfully fetched color image from camera
Changes
- info
added the new optional
queryrequest parameterresult_type - info
the
queryrequest parametercamera_prim_pathbecame optional - info
queryrequest parametercamera_prim_pathlist-of-types was widened by adding typesnull - info
for the
queryrequest parametercamera_prim_path, the type was generalized fromstringto no type - info
added the media type
image/jpegfor the response with the status
- info