From 5bb742881f00ef8b449641431a560e2a651692d3 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Fri, 22 Aug 2025 14:34:57 +0100 Subject: [PATCH] Fix typehints and docs for opencv camera --- src/openflexure_microscope_server/things/camera/opencv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/opencv.py b/src/openflexure_microscope_server/things/camera/opencv.py index 7c42d478..5f179301 100644 --- a/src/openflexure_microscope_server/things/camera/opencv.py +++ b/src/openflexure_microscope_server/things/camera/opencv.py @@ -18,7 +18,7 @@ from PIL import Image import labthings_fastapi as lt from labthings_fastapi.types.numpy import NDArray -from . import BaseCamera, JPEGBlob +from . import BaseCamera class OpenCVCamera(BaseCamera): @@ -106,8 +106,8 @@ class OpenCVCamera(BaseCamera): self, stream_name: Literal["main", "full"] = "main", wait: Optional[float] = None, - ) -> JPEGBlob: - """Acquire one image from the camera and return as a JPEG blob. + ) -> Image: + """Acquire one image from the camera and return as a PIL image. This function will produce a JPEG image. """