Camera#
Camera
A camera from Docking Camera (KURS), on an onboard camera part or a docking port.
A Camera object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /docking-camera/camera/(id)/part#
Get the part containing this camera.
- Parameters:
id – The identifier of the Camera object.
- Response JSON Object:
value (SpaceCenter.Part)
- POST /docking-camera/camera/(id)/image#
The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started.
Note
The camera is switched on by setting the
IsEnabledfield of itsPartCameraModuleorDockingCameraModuletotrue, which also opens the camera window.- Parameters:
id – The identifier of the Camera object.
- Request JSON Object:
format (StdLib.ImageFormat) – The format of the image. Optional, defaults to
"png".quality (int32) – The quality of a JPEG image, from 1 to 100. Optional, defaults to
75.
- Response JSON Object:
value (bytes) – The image data.