Camera#
- class DockingCamera.Camera()#
A camera from Docking Camera (KURS), on an onboard camera part or a docking port.
- Camera.getPart()#
Get the part containing this camera.
- Property:
Read-only, cannot be set
- Return type:
- Camera.image([format[, quality]])#
The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started.
- Arguments:
format (
StdLib.ImageFormat) – The format of the image. Defaults toStdLib.ImageFormat.png.quality (
number) – The quality of a JPEG image, from 1 to 100. Defaults to75.
- Returns:
The image data.
- Return type:
Uint8Array
Note
The camera is switched on by setting the
IsEnabledfield of itsPartCameraModuleorDockingCameraModuletotrue, which also opens the camera window.