From f3c79b746fb3f09b700ec522e91baad763e779f4 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sun, 9 Nov 2025 22:25:24 +0000 Subject: [PATCH] Fix RGB vs BGR issue for opencv camera --- src/openflexure_microscope_server/things/camera/opencv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/opencv.py b/src/openflexure_microscope_server/things/camera/opencv.py index a4e5f81a..a19645d8 100644 --- a/src/openflexure_microscope_server/things/camera/opencv.py +++ b/src/openflexure_microscope_server/things/camera/opencv.py @@ -106,7 +106,7 @@ class OpenCVCamera(BaseCamera): raise RuntimeError( f"Failed to capture frame from camera {self.camera_index}" ) - return frame + return cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) def capture_image( self,