AbstractCamera#

class payloadcomputerdroneprojekt.camera.AbstractCamera(config)[source]#

Bases: ABC

Abstract base class for camera implementations. This class defines the interface for camera operations such as starting, capturing frames, and stopping the camera.

abstract get_current_frame()[source]#

Capture the current frame from the camera. :return: The captured frame.

abstract start_camera(config=None)[source]#

Start the camera with the given configuration. :param config: Optional configuration for the camera.

abstract stop_camera()[source]#

Stop the camera.