Apply suggestions from code review of branch ce-disable
This commit is contained in:
parent
909de1709d
commit
4135532476
1 changed files with 2 additions and 4 deletions
|
|
@ -107,15 +107,13 @@ def geq_is_static(tuning: dict) -> bool:
|
||||||
def set_ce_to_disabled(
|
def set_ce_to_disabled(
|
||||||
tuning: dict,
|
tuning: dict,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Update the ``rpi.ce_enable`` section of a camera tuning dict.
|
"""Set ``ce_enable`` in ``rpi.contrast`` to zero to disable adaptive contrast enhancement.
|
||||||
|
|
||||||
:param tuning: the raspberry pi tuning file. This will be updated in-place to
|
:param tuning: the raspberry pi tuning file. This will be updated in-place to
|
||||||
set ce_enable to 0.
|
set ce_enable to 0.
|
||||||
"""
|
"""
|
||||||
contrast = Picamera2.find_tuning_algo(tuning, "rpi.contrast")
|
contrast = Picamera2.find_tuning_algo(tuning, "rpi.contrast")
|
||||||
contrast["ce_enable"] = (
|
contrast["ce_enable"] = 0
|
||||||
0 # disable ce_enable to prevent adaptive contrast enhancement
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def ce_enable_is_static(tuning: dict) -> bool:
|
def ce_enable_is_static(tuning: dict) -> bool:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue