hardware.json: add wb gain settings
This commit is contained in:
parent
23c2c84deb
commit
6ce27f177d
|
@ -5,5 +5,7 @@
|
||||||
"pump_steps_per_ml": 507,
|
"pump_steps_per_ml": 507,
|
||||||
"focus_max_speed": 0.5,
|
"focus_max_speed": 0.5,
|
||||||
"pump_max_speed": 30,
|
"pump_max_speed": 30,
|
||||||
"stepper_type": "adafruit"
|
"stepper_type": "adafruit",
|
||||||
|
"wb_red_gain": 2,
|
||||||
|
"wb_blue_gain": 1.41
|
||||||
}
|
}
|
|
@ -194,8 +194,8 @@ class ImagerProcess(multiprocessing.Process):
|
||||||
self.__exposure_mode = "fixedfps"
|
self.__exposure_mode = "fixedfps"
|
||||||
self.__white_balance = "off"
|
self.__white_balance = "off"
|
||||||
self.__white_balance_gain = (
|
self.__white_balance_gain = (
|
||||||
200,
|
configuration.get("wb_red_gain", 2.00) * 100,
|
||||||
140,
|
configuration.get("wb_blue_gain", 1.40) * 100,
|
||||||
) # Those values were tested on a HQ camera to give a whitish background
|
) # Those values were tested on a HQ camera to give a whitish background
|
||||||
|
|
||||||
self.__base_path = "/home/pi/data/img"
|
self.__base_path = "/home/pi/data/img"
|
||||||
|
|
Loading…
Reference in a new issue