From ebc28546bcc7992400f70c4cd5e9ee0f4bd805f9 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sun, 23 Aug 2026 16:10:11 +0200 Subject: [PATCH] Better camera settings --- orchestrateur/sensors/camera.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/orchestrateur/sensors/camera.py b/orchestrateur/sensors/camera.py index e7cd8ca..e962afb 100644 --- a/orchestrateur/sensors/camera.py +++ b/orchestrateur/sensors/camera.py @@ -16,14 +16,11 @@ camera_config = picam2.create_still_configuration( main={"size": (1640, 1232)} ) picam2.set_controls({ - "AeEnable": False, # Disable Auto Exposure to lock settings - "ExposureTime": 60000, # 40 ms shutter time (brightens without grain) - "AnalogueGain": 2.0, # Keep gain low to eliminate sensor noise - "AwbEnable": False, # Disable Auto White Balance fluctuation - "ColourGains": (1.4, 1.2), # Balanced RGB gains for indoor warm LED - "Brightness": 0.2, # Slight boost to shadow detail - "Contrast": 1.1, # Crisp edges around metallic surfaces - "ScalerCrop": [0, 0, max_width, max_height] # Uncrop the image + "AeEnable": True, + "AwbEnable": True, + "ExposureTime": 60000, + "Brightness": 0.25, + "Contrast": 1.1 }) picam2.configure(camera_config)