Add camera-stage-mapping compliant functions to BaseStage and BaseCamera.

This commit is contained in:
Julian Stirling 2025-07-13 21:55:55 +01:00
parent 18e5f80105
commit b89449be77
6 changed files with 130 additions and 110 deletions

View file

@ -75,6 +75,11 @@ class OpenCVCamera(BaseCamera):
].tobytes()
self.lores_mjpeg_stream.add_frame(jpeg_lores, portal)
@lt.thing_action
def discard_frames(self) -> None:
"""Discard frames so that the next frame captured is fresh."""
self.capture_array()
@lt.thing_action
def capture_array(
self,