actfw_raspberrypi package

Subpackages

Submodules

actfw_raspberrypi.capture module

class actfw_raspberrypi.capture.PiCameraCapture(camera: picamera.PiCamera, *args: Any, **kwargs: Any)

Bases: actfw_core.task.producer.Producer[actfw_core.capture.Frame[bytes]]

Parameters

camera (PiCamera) – picamera object

args: Any
camera: picamera.PiCamera
kwargs: Any

Captured Frame Producer for Raspberry Pi Camera Module

run() None

Run producer activity

actfw_raspberrypi.display module

class actfw_raspberrypi.display.Display(camera: picamera.PiCamera, size: Tuple[int, int])

Bases: object

Parameters
  • camera (PiCamera) – picamera object

  • size (int, int) – display area resolution

camera: picamera.PiCamera
layer: Optional[picamera.PiOverlayRenderer]

Display using PiCamera Overlay

ofs_h: float
ofs_w: float
preferred_size: Tuple[int, int]
scale: float
size: Tuple[int, int]
update(dst_rect: Tuple[int, int, int, int], src_buf: bytes, src_size: Tuple[int, int], src_format: str) None

Update display.

Parameters
  • dst_rect (int, int, int, int) – destination area rectangle (left, upper, width, height)

  • src_buf (bytes) – update image data buffer

  • src_size (int, int) – update image data size (width, height)

  • src_format (string) – “rgb”

actfw_raspberrypi.edid module

class actfw_raspberrypi.edid.EDID

Bases: object

edid: str

Extended Display Information Data

prefferd_mode() Tuple[int, int]

Preffered Display Resolution.

Returns

(width, height)

Return type

(int, int)

Module contents