Camera#
- class Camera#
A camera from Docking Camera (KURS), on an onboard camera part or a docking port.
Base class:SpaceCenter.ModuleInherited Members
From
SpaceCenter.Module:name,part,config,field_list,event_list,action_list
- image([format=StdLib.ImageFormat.png][, quality=75])#
The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started.
- Parameters:
format (StdLib.ImageFormat) – The format of the image.
quality (int) – The quality of a JPEG image, from 1 to 100.
- Returns:
The image data.
- Return type:
bytes
Note
The camera is switched on by setting the
IsEnabledfield of itsPartCameraModuleorDockingCameraModuletoTrue, which also opens the camera window.