payloadcomputerdroneprojekt.camera package#

Subpackages#

Submodules#

payloadcomputerdroneprojekt.camera.abstract_class module#

class payloadcomputerdroneprojekt.camera.abstract_class.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.

payloadcomputerdroneprojekt.camera.raspi2 module#

class payloadcomputerdroneprojekt.camera.raspi2.RaspiCamera(config)[source]#

Bases: AbstractCamera

get_current_frame()[source]#

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

start_camera(config=None)[source]#

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

stop_camera()[source]#

Stop the camera.

Module contents#