diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 561d612f..a50a553e 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -362,7 +362,7 @@ class BaseCamera(lt.Thing): def capture_image( self, - stream_name: Literal["main", "lores", "raw"], + stream_name: Literal["main", "lores", "full"], wait: Optional[float] = None, ) -> Image.Image: """Capture a PIL image from stream stream_name with timeout wait.""" diff --git a/src/openflexure_microscope_server/things/camera/opencv.py b/src/openflexure_microscope_server/things/camera/opencv.py index db8ee41f..adf67996 100644 --- a/src/openflexure_microscope_server/things/camera/opencv.py +++ b/src/openflexure_microscope_server/things/camera/opencv.py @@ -90,7 +90,7 @@ class OpenCVCamera(BaseCamera): @lt.action def capture_array( self, - stream_name: Literal["main", "full"] = "full", + stream_name: Literal["main", "lores", "raw", "full"] = "full", wait: Optional[float] = None, ) -> NDArray: """Acquire one image from the camera and return as an array. @@ -111,7 +111,7 @@ class OpenCVCamera(BaseCamera): def capture_image( self, - stream_name: Literal["main", "full"] = "main", + stream_name: Literal["main", "lores", "full"] = "main", wait: Optional[float] = None, ) -> Image.Image: """Acquire one image from the camera and return as a PIL image. diff --git a/src/openflexure_microscope_server/things/camera/simulation.py b/src/openflexure_microscope_server/things/camera/simulation.py index c825a4ce..ec220371 100644 --- a/src/openflexure_microscope_server/things/camera/simulation.py +++ b/src/openflexure_microscope_server/things/camera/simulation.py @@ -316,7 +316,7 @@ class SimulatedCamera(BaseCamera): @lt.action def capture_array( self, - stream_name: Literal["main", "full"] = "full", + stream_name: Literal["main", "lores", "raw", "full"] = "full", wait: Optional[float] = None, ) -> NDArray: """Acquire one image from the camera and return as an array. @@ -335,7 +335,7 @@ class SimulatedCamera(BaseCamera): def capture_image( self, - stream_name: Literal["main", "lores", "raw"], + stream_name: Literal["main", "lores", "full"], wait: Optional[float] = None, ) -> Image.Image: """Capture to a PIL image. This is not exposed as a ThingAction.