diff --git a/ofm_config_manual.json b/ofm_config_manual.json new file mode 100644 index 00000000..03cae49e --- /dev/null +++ b/ofm_config_manual.json @@ -0,0 +1,11 @@ +{ + "things": { + "/camera/": { + "class": "openflexure_microscope_server.things.camera.opencv:OpenCVCamera", + "kwargs": {"camera_index": 0} + }, + "/system/": "openflexure_microscope_server.things.system:OpenFlexureSystem" + }, + "settings_folder": "./openflexure/settings/", + "log_folder": "./openflexure/logs/" +} \ No newline at end of file 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,