Allow improve_contrast to be toggled via mqtt (#3011)

* Toggle improve_contrast for cameras via MQTT

* Process parameter to mqtt toggle improve_contrast

* Update mqtt docs for improve_contrast topic

* Spacing

* Add class variable and update in process_frames

* Pass to constructor

* pass by reference mistake

* remove parameter

* remove parameter
This commit is contained in:
Josh Hawkins
2022-04-16 08:52:02 -05:00
committed by GitHub
parent a5016afdd4
commit 65e0ec7826
5 changed files with 56 additions and 10 deletions

View File

@@ -92,6 +92,9 @@ class FrigateApp:
"detection_enabled": mp.Value(
"i", self.config.cameras[camera_name].detect.enabled
),
"improve_contrast_enabled": mp.Value(
"i", self.config.cameras[camera_name].motion.improve_contrast
),
"detection_fps": mp.Value("d", 0.0),
"detection_frame": mp.Value("d", 0.0),
"read_start": mp.Value("d", 0.0),