Add camera-stage-mapping compliant functions to BaseStage and BaseCamera.
This commit is contained in:
parent
18e5f80105
commit
b89449be77
6 changed files with 130 additions and 110 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue