Better camera settings
This commit is contained in:
@@ -16,14 +16,11 @@ camera_config = picam2.create_still_configuration(
|
|||||||
main={"size": (1640, 1232)}
|
main={"size": (1640, 1232)}
|
||||||
)
|
)
|
||||||
picam2.set_controls({
|
picam2.set_controls({
|
||||||
"AeEnable": False, # Disable Auto Exposure to lock settings
|
"AeEnable": True,
|
||||||
"ExposureTime": 60000, # 40 ms shutter time (brightens without grain)
|
"AwbEnable": True,
|
||||||
"AnalogueGain": 2.0, # Keep gain low to eliminate sensor noise
|
"ExposureTime": 60000,
|
||||||
"AwbEnable": False, # Disable Auto White Balance fluctuation
|
"Brightness": 0.25,
|
||||||
"ColourGains": (1.4, 1.2), # Balanced RGB gains for indoor warm LED
|
"Contrast": 1.1
|
||||||
"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
|
|
||||||
})
|
})
|
||||||
picam2.configure(camera_config)
|
picam2.configure(camera_config)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user