.. default-domain:: py .. highlight:: py .. currentmodule:: DockingCamera Camera ====== .. class:: Camera A camera from Docking Camera (KURS), on an onboard camera part or a docking port. | Base class: :class:`SpaceCenter.Module` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`SpaceCenter.Module`: :attr:`~SpaceCenter.Module.name`, :attr:`~SpaceCenter.Module.part`, :attr:`~SpaceCenter.Module.config`, :attr:`~SpaceCenter.Module.field_list`, :attr:`~SpaceCenter.Module.event_list`, :attr:`~SpaceCenter.Module.action_list` .. method:: 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. :param StdLib.ImageFormat format: The format of the image. :param int quality: The quality of a JPEG image, from 1 to 100. :returns: The image data. :rtype: bytes .. note:: The camera is switched on by setting the ``IsEnabled`` field of its ``PartCameraModule`` or ``DockingCameraModule`` to ``True``, which also opens the camera window.