From 25d2f400b1413b18cab716cab893f0245f986e44 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Thu, 24 Jul 2025 17:15:16 +0100 Subject: [PATCH] Set background on the pi-camera during initial calibration --- src/openflexure_microscope_server/things/camera/picamera.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/picamera.py b/src/openflexure_microscope_server/things/camera/picamera.py index fba605e0..7d44beaa 100644 --- a/src/openflexure_microscope_server/things/camera/picamera.py +++ b/src/openflexure_microscope_server/things/camera/picamera.py @@ -737,7 +737,7 @@ class StreamingPiCamera2(BaseCamera): self._initialise_picamera() @lt.thing_action - def full_auto_calibrate(self) -> None: + def full_auto_calibrate(self, portal: lt.deps.BlockingPortal) -> None: """Perform a full auto-calibration. This function will call the other calibration actions in sequence: @@ -747,12 +747,14 @@ class StreamingPiCamera2(BaseCamera): * ``set_static_green_equalisation`` to set geq offset to max * ``calibrate_lens_shading`` * ``calibrate_white_balance`` + * ``set_background`` """ self.flat_lens_shading() self.auto_expose_from_minimum() self.set_static_green_equalisation() self.calibrate_lens_shading() self.calibrate_white_balance() + self.set_background(portal) @lt.thing_action def flat_lens_shading(self) -> None: