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
|
|
@ -187,6 +187,13 @@ class SimulatedCamera(BaseCamera):
|
|||
except Exception as e:
|
||||
logging.error(f"Failed to capture frame: {e}, retrying...")
|
||||
|
||||
@lt.thing_action
|
||||
def discard_frames(self) -> None:
|
||||
"""Discard frames so that the next frame captured is fresh.
|
||||
|
||||
There is nothing to do as this is a simulation!
|
||||
"""
|
||||
|
||||
@lt.thing_action
|
||||
def capture_array(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue